.. | .. |
---|
58 | 58 | #define MSDOS_DOT ". " /* ".", padded to MSDOS_NAME chars */ |
---|
59 | 59 | #define MSDOS_DOTDOT ".. " /* "..", padded to MSDOS_NAME chars */ |
---|
60 | 60 | |
---|
61 | | -#define FAT_FIRST_ENT(s, x) ((MSDOS_SB(s)->fat_bits == 32 ? 0x0FFFFF00 : \ |
---|
62 | | - MSDOS_SB(s)->fat_bits == 16 ? 0xFF00 : 0xF00) | (x)) |
---|
63 | | - |
---|
64 | 61 | /* start of data cluster's entry (number of reserved clusters) */ |
---|
65 | 62 | #define FAT_START_ENT 2 |
---|
66 | 63 | |
---|
.. | .. |
---|
68 | 65 | #define MAX_FAT12 0xFF4 |
---|
69 | 66 | #define MAX_FAT16 0xFFF4 |
---|
70 | 67 | #define MAX_FAT32 0x0FFFFFF6 |
---|
71 | | -#define MAX_FAT(s) (MSDOS_SB(s)->fat_bits == 32 ? MAX_FAT32 : \ |
---|
72 | | - MSDOS_SB(s)->fat_bits == 16 ? MAX_FAT16 : MAX_FAT12) |
---|
73 | 68 | |
---|
74 | 69 | /* bad cluster mark */ |
---|
75 | 70 | #define BAD_FAT12 0xFF7 |
---|
.. | .. |
---|
135 | 130 | for mount state. */ |
---|
136 | 131 | __u8 signature; /* extended boot signature */ |
---|
137 | 132 | __u8 vol_id[4]; /* volume ID */ |
---|
138 | | - __u8 vol_label[11]; /* volume label */ |
---|
| 133 | + __u8 vol_label[MSDOS_NAME]; /* volume label */ |
---|
139 | 134 | __u8 fs_type[8]; /* file system type */ |
---|
140 | 135 | /* other fields are not added here */ |
---|
141 | 136 | } fat16; |
---|
.. | .. |
---|
158 | 153 | for mount state. */ |
---|
159 | 154 | __u8 signature; /* extended boot signature */ |
---|
160 | 155 | __u8 vol_id[4]; /* volume ID */ |
---|
161 | | - __u8 vol_label[11]; /* volume label */ |
---|
| 156 | + __u8 vol_label[MSDOS_NAME]; /* volume label */ |
---|
162 | 157 | __u8 fs_type[8]; /* file system type */ |
---|
163 | 158 | /* other fields are not added here */ |
---|
164 | 159 | } fat32; |
---|