aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/bb_e2fs_defs.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/bb_e2fs_defs.h b/include/bb_e2fs_defs.h
index 3f5e3c45b..2d72288ed 100644
--- a/include/bb_e2fs_defs.h
+++ b/include/bb_e2fs_defs.h
@@ -195,6 +195,18 @@ struct ext2_dx_countlimit {
195#define EXT2_IOC_SETFLAGS _IOW('f', 2, long) 195#define EXT2_IOC_SETFLAGS _IOW('f', 2, long)
196#define EXT2_IOC_GETVERSION _IOR('v', 1, long) 196#define EXT2_IOC_GETVERSION _IOR('v', 1, long)
197#define EXT2_IOC_SETVERSION _IOW('v', 2, long) 197#define EXT2_IOC_SETVERSION _IOW('v', 2, long)
198//NB: despite "long" in defs above, these ioctls use an _int_!
199//passing them a pointer to long will read/write only int-sized data!
200struct ext2_fsxattr {
201 uint32_t fsx_xflags; /* xflags field value (get/set) */
202 uint32_t fsx_extsize; /* extsize field value (get/set)*/
203 uint32_t fsx_nextents; /* nextents field value (get) */
204 uint32_t fsx_projid; /* project identifier (get/set) */
205 uint32_t fsx_cowextsize; /* CoW extsize field value (get/set)*/
206 unsigned char fsx_pad[8];
207};
208#define EXT2_IOC_FSGETXATTR _IOR('X', 31, struct ext2_fsxattr)
209#define EXT2_IOC_FSSETXATTR _IOW('X', 32, struct ext2_fsxattr)
198 210
199/* 211/*
200 * Structure of an inode on the disk 212 * Structure of an inode on the disk