diff options
| author | Oleksij Rempel <bug-track@fisher-privat.net> | 2013-02-27 20:03:07 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-27 22:10:10 -0500 |
| commit | 6b46419b0462ae565880f02e9cd0baf9b25ea71f (patch) | |
| tree | b61bdf965ec8457a35a6174cbeff09897debdc90 /include/uapi/linux | |
| parent | 899bed05e9f6bbb21776f9ebd88f5631987f987a (diff) | |
fat: add extended fileds to struct fat_boot_sector
Later we will need "state" field to check if volume was cleanly unmounted.
Signed-off-by: Oleksij Rempel <bug-track@fisher-privat.net>
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/msdos_fs.h | 36 |
1 files changed, 28 insertions, 8 deletions
diff --git a/include/uapi/linux/msdos_fs.h b/include/uapi/linux/msdos_fs.h index 996719f82e28..b9f12450efe8 100644 --- a/include/uapi/linux/msdos_fs.h +++ b/include/uapi/linux/msdos_fs.h | |||
| @@ -120,14 +120,34 @@ struct fat_boot_sector { | |||
| 120 | __le32 hidden; /* hidden sectors (unused) */ | 120 | __le32 hidden; /* hidden sectors (unused) */ |
| 121 | __le32 total_sect; /* number of sectors (if sectors == 0) */ | 121 | __le32 total_sect; /* number of sectors (if sectors == 0) */ |
| 122 | 122 | ||
| 123 | /* The following fields are only used by FAT32 */ | 123 | union { |
| 124 | __le32 fat32_length; /* sectors/FAT */ | 124 | struct { |
| 125 | __le16 flags; /* bit 8: fat mirroring, low 4: active fat */ | 125 | /* Extended BPB Fields for FAT16 */ |
| 126 | __u8 version[2]; /* major, minor filesystem version */ | 126 | __u8 drive_number; /* Physical drive number */ |
| 127 | __le32 root_cluster; /* first cluster in root directory */ | 127 | __u8 state; /* undocumented, but used |
| 128 | __le16 info_sector; /* filesystem info sector */ | 128 | for mount state. */ |
| 129 | __le16 backup_boot; /* backup boot sector */ | 129 | /* other fiealds are not added here */ |
| 130 | __le16 reserved2[6]; /* Unused */ | 130 | } fat16; |
| 131 | |||
| 132 | struct { | ||
| 133 | /* only used by FAT32 */ | ||
| 134 | __le32 length; /* sectors/FAT */ | ||
| 135 | __le16 flags; /* bit 8: fat mirroring, | ||
| 136 | low 4: active fat */ | ||
| 137 | __u8 version[2]; /* major, minor filesystem | ||
| 138 | version */ | ||
| 139 | __le32 root_cluster; /* first cluster in | ||
| 140 | root directory */ | ||
| 141 | __le16 info_sector; /* filesystem info sector */ | ||
| 142 | __le16 backup_boot; /* backup boot sector */ | ||
| 143 | __le16 reserved2[6]; /* Unused */ | ||
| 144 | /* Extended BPB Fields for FAT32 */ | ||
| 145 | __u8 drive_number; /* Physical drive number */ | ||
| 146 | __u8 state; /* undocumented, but used | ||
| 147 | for mount state. */ | ||
| 148 | /* other fiealds are not added here */ | ||
| 149 | } fat32; | ||
| 150 | }; | ||
| 131 | }; | 151 | }; |
| 132 | 152 | ||
| 133 | struct fat_boot_fsinfo { | 153 | struct fat_boot_fsinfo { |
