]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: introduce v5 inode group structure
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 14 Aug 2019 22:05:17 +0000 (18:05 -0400)
committerEric Sandeen <sandeen@redhat.com>
Wed, 14 Aug 2019 22:05:17 +0000 (18:05 -0400)
Source kernel commit: 5f19c7fc6873351a3d81bbbb98c928343902d8d6

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_fs.h

index 37b7bf792c3850df7d6062b5d0c4cdace15c5cba..f4953266f3c2211ceb26c32d7510ee7b2c4ef985 100644 (file)
@@ -466,6 +466,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.