aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/msdos_fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/msdos_fs.h')
-rw-r--r--include/linux/msdos_fs.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/msdos_fs.h b/include/linux/msdos_fs.h
index 34066e65fde..f38d4f0a5ae 100644
--- a/include/linux/msdos_fs.h
+++ b/include/linux/msdos_fs.h
@@ -101,6 +101,7 @@ struct __fat_dirent {
101/* <linux/videotext.h> has used 0x72 ('r') in collision, so skip a few */ 101/* <linux/videotext.h> has used 0x72 ('r') in collision, so skip a few */
102#define FAT_IOCTL_GET_ATTRIBUTES _IOR('r', 0x10, __u32) 102#define FAT_IOCTL_GET_ATTRIBUTES _IOR('r', 0x10, __u32)
103#define FAT_IOCTL_SET_ATTRIBUTES _IOW('r', 0x11, __u32) 103#define FAT_IOCTL_SET_ATTRIBUTES _IOW('r', 0x11, __u32)
104#define VFAT_IOCTL_GET_VOLUME_ID _IOR('r', 0x12, __u32)
104 105
105struct fat_boot_sector { 106struct fat_boot_sector {
106 __u8 ignored[3]; /* Boot strap short or near jump */ 107 __u8 ignored[3]; /* Boot strap short or near jump */
@@ -138,6 +139,17 @@ struct fat_boot_fsinfo {
138 __le32 reserved2[4]; 139 __le32 reserved2[4];
139}; 140};
140 141
142struct fat_boot_bsx {
143 __u8 drive; /* drive number */
144 __u8 reserved1;
145 __u8 signature; /* extended boot signature */
146 __u8 vol_id[4]; /* volume ID */
147 __u8 vol_label[11]; /* volume label */
148 __u8 type[8]; /* file system type */
149};
150#define FAT16_BSX_OFFSET 36 /* offset of fat_boot_bsx in FAT12 and FAT16 */
151#define FAT32_BSX_OFFSET 64 /* offset of fat_boot_bsx in FAT32 */
152
141struct msdos_dir_entry { 153struct msdos_dir_entry {
142 __u8 name[MSDOS_NAME];/* name and extension */ 154 __u8 name[MSDOS_NAME];/* name and extension */
143 __u8 attr; /* attribute bits */ 155 __u8 attr; /* attribute bits */