aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/ext2fs/inode.h
diff options
context:
space:
mode:
authorFedor Uporov <fsu@FreeBSD.org>2017-10-17 20:45:44 +0000
committerFedor Uporov <fsu@FreeBSD.org>2017-10-17 20:45:44 +0000
commitb394cd1e28f1a094742434474ebe4f5004bf0ce3 (patch)
tree4a903d2c90a5b6b6660009ceba227c563b50628b /sys/fs/ext2fs/inode.h
parentb541ba195ccc4806d94348fa328d620e3261c05a (diff)
downloadsrc-b394cd1e28f1a094742434474ebe4f5004bf0ce3.tar.gz
src-b394cd1e28f1a094742434474ebe4f5004bf0ce3.zip
Add inital extents read-write support.
Approved by: pfg (mentor) MFC after: 6 months RelNotes: Yes Differential Revision: https://reviews.freebsd.org/D12087
Notes
Notes: svn path=/head/; revision=324706
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 */
};