Changeset aa2ea13 in mainline
- Timestamp:
- 2011-04-30T11:50:30Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0a51029f
- Parents:
- 875edff6
- Location:
- uspace/srv/fs/fat
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_fat.c
r875edff6 raa2ea13 787 787 * set to one. 788 788 */ 789 if (!FAT_IS_FAT12(bs) && ((e0 >> 8) != (FAT_MASK(bs) >> 8) || e1 != FAT_MASK(bs))) 789 if (!FAT_IS_FAT12(bs) && 790 ((e0 >> 8) != (FAT_MASK(bs) >> 8) || e1 != FAT_MASK(bs))) 790 791 return ENOTSUP; 791 792 } -
uspace/srv/fs/fat/fat_fat.h
r875edff6 raa2ea13 54 54 #define FAT32_CLST_LAST8 0x0fffffff 55 55 56 #define FAT12_MASK 57 #define FAT16_MASK 58 #define FAT32_MASK 56 #define FAT12_MASK 0x0fff 57 #define FAT16_MASK 0xffff 58 #define FAT32_MASK 0x0fffffff 59 59 60 60 #define FAT12_CLST_MAX 4085 … … 87 87 88 88 #define FAT_CLST_LAST1(bs) \ 89 (FAT_IS_FAT12(bs) ? FAT12_CLST_LAST1 : (FAT_IS_FAT32(bs) ? FAT32_CLST_LAST1 : FAT16_CLST_LAST1)) 89 (FAT_IS_FAT12(bs) ? FAT12_CLST_LAST1 : \ 90 (FAT_IS_FAT32(bs) ? FAT32_CLST_LAST1 : FAT16_CLST_LAST1)) 90 91 #define FAT_CLST_LAST8(bs) \ 91 (FAT_IS_FAT12(bs) ? FAT12_CLST_LAST8 : (FAT_IS_FAT32(bs) ? FAT32_CLST_LAST8 : FAT16_CLST_LAST8)) 92 (FAT_IS_FAT12(bs) ? FAT12_CLST_LAST8 : \ 93 (FAT_IS_FAT32(bs) ? FAT32_CLST_LAST8 : FAT16_CLST_LAST8)) 92 94 #define FAT_CLST_BAD(bs) \ 93 (FAT_IS_FAT12(bs) ? FAT12_CLST_BAD : (FAT_IS_FAT32(bs) ? FAT32_CLST_BAD : FAT16_CLST_BAD)) 95 (FAT_IS_FAT12(bs) ? FAT12_CLST_BAD : \ 96 (FAT_IS_FAT32(bs) ? FAT32_CLST_BAD : FAT16_CLST_BAD)) 94 97 95 #define FAT_CLST_SIZE(bs) (FAT_IS_FAT32(bs) ? FAT32_CLST_SIZE : FAT16_CLST_SIZE) 98 #define FAT_CLST_SIZE(bs) \ 99 (FAT_IS_FAT32(bs) ? FAT32_CLST_SIZE : FAT16_CLST_SIZE) 96 100 97 101 #define FAT_MASK(bs) \ 98 (FAT_IS_FAT12(bs) ? FAT12_MASK : (FAT_IS_FAT32(bs) ? FAT32_MASK : FAT16_MASK)) 102 (FAT_IS_FAT12(bs) ? FAT12_MASK : \ 103 (FAT_IS_FAT32(bs) ? FAT32_MASK : FAT16_MASK)) 99 104 100 105 /* forward declarations */
Note:
See TracChangeset
for help on using the changeset viewer.