Changeset cb052b4 in mainline
- Timestamp:
- 2011-04-30T08:02:46Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 875edff6
- Parents:
- ce8f4f4
- Location:
- uspace/srv/fs/fat
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_fat.h
rce8f4f4 rcb052b4 50 50 #define FAT16_CLST_LAST1 0xfff8 51 51 #define FAT16_CLST_LAST8 0xffff 52 #define FAT32_CLST_BAD 0x0ffffff7 53 #define FAT32_CLST_LAST1 0x0ffffff8 54 #define FAT32_CLST_LAST8 0x0fffffff 52 55 53 56 #define FAT12_CLST_MAX 4085 … … 72 75 #define FAT_IS_FAT16(bs) \ 73 76 ((CC(bs) >= FAT12_CLST_MAX) && (CC(bs) < FAT16_CLST_MAX)) 77 #define FAT_IS_FAT32(bs) (CC(bs) >= FAT16_CLST_MAX) 74 78 75 79 #define FAT_CLST_LAST1(bs) \ 76 (FAT_IS_FAT12(bs) ? FAT12_CLST_LAST1 : FAT16_CLST_LAST1)80 (FAT_IS_FAT12(bs) ? FAT12_CLST_LAST1 : (FAT_IS_FAT32(bs) ? FAT32_CLST_LAST1 : FAT16_CLST_LAST1)) 77 81 #define FAT_CLST_LAST8(bs) \ 78 (FAT_IS_FAT12(bs) ? FAT12_CLST_LAST8 : FAT16_CLST_LAST8)82 (FAT_IS_FAT12(bs) ? FAT12_CLST_LAST8 : (FAT_IS_FAT32(bs) ? FAT32_CLST_LAST8 : FAT16_CLST_LAST8)) 79 83 #define FAT_CLST_BAD(bs) \ 80 (FAT_IS_FAT12(bs) ? FAT12_CLST_BAD : FAT16_CLST_BAD)84 (FAT_IS_FAT12(bs) ? FAT12_CLST_BAD : (FAT_IS_FAT32(bs) ? FAT32_CLST_BAD : FAT16_CLST_BAD)) 81 85 82 86 /* forward declarations */ -
uspace/srv/fs/fat/fat_ops.c
rce8f4f4 rcb052b4 1003 1003 } 1004 1004 1005 /* Return NOT SUPPORTED if try to mount FAT32 */1006 if (!FAT_IS_FAT12(bs) && !FAT_IS_FAT16(bs)) {1007 block_fini(devmap_handle);1008 async_answer_0(rid, ENOTSUP);1009 return;1010 }1011 1012 1005 /* Do some simple sanity checks on the file system. */ 1013 1006 rc = fat_sanity_check(bs, devmap_handle);
Note:
See TracChangeset
for help on using the changeset viewer.