diff options
author | Keith Packard <keithp@keithp.com> | 2013-03-31 12:22:28 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-03-31 12:22:28 -0700 |
commit | a0595d94c7deea29d9e3d4bcbc106b9bed5ee103 (patch) | |
tree | 2a47196869f9de33d4a937b1f8cbeb074c8f5599 /src/drivers/ao_fat.h | |
parent | a0628541e1bfc3e4a122cc824188ed53fddf733e (diff) |
altos: Move fat mount information to separate command.
This makes the mount report precise error information and then prints
that with the 'M' command.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers/ao_fat.h')
-rw-r--r-- | src/drivers/ao_fat.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/drivers/ao_fat.h b/src/drivers/ao_fat.h index e460c22a..40786990 100644 --- a/src/drivers/ao_fat.h +++ b/src/drivers/ao_fat.h @@ -35,6 +35,7 @@ ao_fat_init(void); #define AO_FAT_IS_FILE(attr) (((attr) & (AO_FAT_FILE_VOLUME_LABEL|AO_FAT_FILE_DIRECTORY)) == 0) #define AO_FAT_IS_DIR(attr) (((attr) & (AO_FAT_FILE_DIRECTORY|AO_FAT_FILE_VOLUME_LABEL)) == AO_FAT_FILE_DIRECTORY) +/* API error codes */ #define AO_FAT_SUCCESS 0 #define AO_FAT_EPERM 1 #define AO_FAT_ENOENT 2 @@ -48,6 +49,17 @@ ao_fat_init(void); #define AO_FAT_EFBIG 27 #define AO_FAT_ENOSPC 28 +/* ao_fat_setup return values */ +#define AO_FAT_FILESYSTEM_SUCCESS 0 +#define AO_FAT_FILESYSTEM_MBR_READ_FAILURE 1 +#define AO_FAT_FILESYSTEM_INVALID_MBR_SIGNATURE 2 +#define AO_FAT_FILESYSTEM_INVALID_PARTITION_TYPE 3 +#define AO_FAT_FILESYSTEM_ZERO_SIZED_PARTITION 4 + +#define AO_FAT_FILESYSTEM_BOOT_READ_FAILURE 5 +#define AO_FAT_FILESYSTEM_INVALID_BOOT_SIGNATURE 6 +#define AO_FAT_FILESYSTEM_INVALID_SECTOR_SIZE 7 + void ao_fat_sync(void); |