aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/ext2fs/inode.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs/ext2fs/inode.h')
-rw-r--r--sys/fs/ext2fs/inode.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/fs/ext2fs/inode.h b/sys/fs/ext2fs/inode.h
index c0178d711eae..a65dc1901893 100644
--- a/sys/fs/ext2fs/inode.h
+++ b/sys/fs/ext2fs/inode.h
@@ -107,8 +107,13 @@ struct inode {
uint32_t i_gen; /* Generation number. */
uint64_t i_facl; /* EA block number. */
uint32_t i_flags; /* Status flags (chflags). */
- uint32_t i_db[EXT2_NDADDR]; /* Direct disk blocks. */
- uint32_t i_ib[EXT2_NIADDR]; /* Indirect disk blocks. */
+ union {
+ struct {
+ uint32_t i_db[EXT2_NDADDR]; /* Direct disk blocks. */
+ uint32_t i_ib[EXT2_NIADDR]; /* Indirect disk blocks. */
+ };
+ uint32_t i_data[EXT2_NDADDR + EXT2_NIADDR];
+ };
struct ext4_extent_cache i_ext_cache; /* cache for ext4 extent */
};