xfs: introduce v5 inode group structure
Introduce a new "v5" inode group structure that fixes the alignment and padding problems of the existing structure. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com>
This commit is contained in:
@@ -445,6 +445,17 @@ struct xfs_inogrp {
|
||||
__u64 xi_allocmask; /* mask of allocated inodes */
|
||||
};
|
||||
|
||||
/* New inumbers structure that reports v5 features and fixes padding issues */
|
||||
struct xfs_inumbers {
|
||||
uint64_t xi_startino; /* starting inode number */
|
||||
uint64_t xi_allocmask; /* mask of allocated inodes */
|
||||
uint8_t xi_alloccount; /* # bits set in allocmask */
|
||||
uint8_t xi_version; /* version */
|
||||
uint8_t xi_padding[6]; /* zero */
|
||||
};
|
||||
|
||||
#define XFS_INUMBERS_VERSION_V1 (1)
|
||||
#define XFS_INUMBERS_VERSION_V5 (5)
|
||||
|
||||
/*
|
||||
* Error injection.
|
||||
|
Reference in New Issue
Block a user