diff options
Diffstat (limited to 'include/linux/ext3_fs.h')
-rw-r--r-- | include/linux/ext3_fs.h | 36 |
1 files changed, 25 insertions, 11 deletions
diff --git a/include/linux/ext3_fs.h b/include/linux/ext3_fs.h index 9f9cce7bd86d..11cca1bdc0c7 100644 --- a/include/linux/ext3_fs.h +++ b/include/linux/ext3_fs.h | |||
@@ -17,6 +17,7 @@ | |||
17 | #define _LINUX_EXT3_FS_H | 17 | #define _LINUX_EXT3_FS_H |
18 | 18 | ||
19 | #include <linux/types.h> | 19 | #include <linux/types.h> |
20 | #include <linux/magic.h> | ||
20 | 21 | ||
21 | /* | 22 | /* |
22 | * The second extended filesystem constants/structures | 23 | * The second extended filesystem constants/structures |
@@ -67,11 +68,6 @@ | |||
67 | #define EXT3_GOOD_OLD_FIRST_INO 11 | 68 | #define EXT3_GOOD_OLD_FIRST_INO 11 |
68 | 69 | ||
69 | /* | 70 | /* |
70 | * The second extended file system magic number | ||
71 | */ | ||
72 | #define EXT3_SUPER_MAGIC 0xEF53 | ||
73 | |||
74 | /* | ||
75 | * Maximal count of links to a file | 71 | * Maximal count of links to a file |
76 | */ | 72 | */ |
77 | #define EXT3_LINK_MAX 32000 | 73 | #define EXT3_LINK_MAX 32000 |
@@ -220,14 +216,14 @@ struct ext3_new_group_data { | |||
220 | /* | 216 | /* |
221 | * ioctl commands | 217 | * ioctl commands |
222 | */ | 218 | */ |
223 | #define EXT3_IOC_GETFLAGS _IOR('f', 1, long) | 219 | #define EXT3_IOC_GETFLAGS FS_IOC_GETFLAGS |
224 | #define EXT3_IOC_SETFLAGS _IOW('f', 2, long) | 220 | #define EXT3_IOC_SETFLAGS FS_IOC_SETFLAGS |
225 | #define EXT3_IOC_GETVERSION _IOR('f', 3, long) | 221 | #define EXT3_IOC_GETVERSION _IOR('f', 3, long) |
226 | #define EXT3_IOC_SETVERSION _IOW('f', 4, long) | 222 | #define EXT3_IOC_SETVERSION _IOW('f', 4, long) |
227 | #define EXT3_IOC_GROUP_EXTEND _IOW('f', 7, unsigned long) | 223 | #define EXT3_IOC_GROUP_EXTEND _IOW('f', 7, unsigned long) |
228 | #define EXT3_IOC_GROUP_ADD _IOW('f', 8,struct ext3_new_group_input) | 224 | #define EXT3_IOC_GROUP_ADD _IOW('f', 8,struct ext3_new_group_input) |
229 | #define EXT3_IOC_GETVERSION_OLD _IOR('v', 1, long) | 225 | #define EXT3_IOC_GETVERSION_OLD FS_IOC_GETVERSION |
230 | #define EXT3_IOC_SETVERSION_OLD _IOW('v', 2, long) | 226 | #define EXT3_IOC_SETVERSION_OLD FS_IOC_SETVERSION |
231 | #ifdef CONFIG_JBD_DEBUG | 227 | #ifdef CONFIG_JBD_DEBUG |
232 | #define EXT3_IOC_WAIT_FOR_READONLY _IOR('f', 99, long) | 228 | #define EXT3_IOC_WAIT_FOR_READONLY _IOR('f', 99, long) |
233 | #endif | 229 | #endif |
@@ -235,6 +231,23 @@ struct ext3_new_group_data { | |||
235 | #define EXT3_IOC_SETRSVSZ _IOW('f', 6, long) | 231 | #define EXT3_IOC_SETRSVSZ _IOW('f', 6, long) |
236 | 232 | ||
237 | /* | 233 | /* |
234 | * ioctl commands in 32 bit emulation | ||
235 | */ | ||
236 | #define EXT3_IOC32_GETFLAGS FS_IOC32_GETFLAGS | ||
237 | #define EXT3_IOC32_SETFLAGS FS_IOC32_SETFLAGS | ||
238 | #define EXT3_IOC32_GETVERSION _IOR('f', 3, int) | ||
239 | #define EXT3_IOC32_SETVERSION _IOW('f', 4, int) | ||
240 | #define EXT3_IOC32_GETRSVSZ _IOR('f', 5, int) | ||
241 | #define EXT3_IOC32_SETRSVSZ _IOW('f', 6, int) | ||
242 | #define EXT3_IOC32_GROUP_EXTEND _IOW('f', 7, unsigned int) | ||
243 | #ifdef CONFIG_JBD_DEBUG | ||
244 | #define EXT3_IOC32_WAIT_FOR_READONLY _IOR('f', 99, int) | ||
245 | #endif | ||
246 | #define EXT3_IOC32_GETVERSION_OLD FS_IOC32_GETVERSION | ||
247 | #define EXT3_IOC32_SETVERSION_OLD FS_IOC32_SETVERSION | ||
248 | |||
249 | |||
250 | /* | ||
238 | * Mount options | 251 | * Mount options |
239 | */ | 252 | */ |
240 | struct ext3_mount_options { | 253 | struct ext3_mount_options { |
@@ -464,7 +477,7 @@ struct ext3_super_block { | |||
464 | */ | 477 | */ |
465 | __u8 s_prealloc_blocks; /* Nr of blocks to try to preallocate*/ | 478 | __u8 s_prealloc_blocks; /* Nr of blocks to try to preallocate*/ |
466 | __u8 s_prealloc_dir_blocks; /* Nr to preallocate for dirs */ | 479 | __u8 s_prealloc_dir_blocks; /* Nr to preallocate for dirs */ |
467 | __u16 s_reserved_gdt_blocks; /* Per group desc for online growth */ | 480 | __le16 s_reserved_gdt_blocks; /* Per group desc for online growth */ |
468 | /* | 481 | /* |
469 | * Journaling support valid if EXT3_FEATURE_COMPAT_HAS_JOURNAL set. | 482 | * Journaling support valid if EXT3_FEATURE_COMPAT_HAS_JOURNAL set. |
470 | */ | 483 | */ |
@@ -477,7 +490,7 @@ struct ext3_super_block { | |||
477 | __u8 s_reserved_char_pad; | 490 | __u8 s_reserved_char_pad; |
478 | __u16 s_reserved_word_pad; | 491 | __u16 s_reserved_word_pad; |
479 | __le32 s_default_mount_opts; | 492 | __le32 s_default_mount_opts; |
480 | __le32 s_first_meta_bg; /* First metablock block group */ | 493 | __le32 s_first_meta_bg; /* First metablock block group */ |
481 | __u32 s_reserved[190]; /* Padding to the end of the block */ | 494 | __u32 s_reserved[190]; /* Padding to the end of the block */ |
482 | }; | 495 | }; |
483 | 496 | ||
@@ -816,6 +829,7 @@ extern void ext3_set_aops(struct inode *inode); | |||
816 | /* ioctl.c */ | 829 | /* ioctl.c */ |
817 | extern int ext3_ioctl (struct inode *, struct file *, unsigned int, | 830 | extern int ext3_ioctl (struct inode *, struct file *, unsigned int, |
818 | unsigned long); | 831 | unsigned long); |
832 | extern long ext3_compat_ioctl (struct file *, unsigned int, unsigned long); | ||
819 | 833 | ||
820 | /* namei.c */ | 834 | /* namei.c */ |
821 | extern int ext3_orphan_add(handle_t *, struct inode *); | 835 | extern int ext3_orphan_add(handle_t *, struct inode *); |