]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_db: report the inode dax flag
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 17 Aug 2020 21:20:17 +0000 (17:20 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Mon, 17 Aug 2020 21:20:17 +0000 (17:20 -0400)
Report the inode DAX flag when we're printing an inode, just like we do
for other v3 inode flags.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
db/inode.c

index 3ae5d18f9887183a3b1ed2de21cf56c6151dbbbb..f13150c96aa9629582c858d220831a7f1253f378 100644 (file)
@@ -172,6 +172,9 @@ const field_t       inode_v3_flds[] = {
        { "cowextsz", FLDT_UINT1,
          OI(COFF(flags2) + bitsz(uint64_t) - XFS_DIFLAG2_COWEXTSIZE_BIT-1), C1,
          0, TYP_NONE },
+       { "dax", FLDT_UINT1,
+         OI(COFF(flags2) + bitsz(uint64_t) - XFS_DIFLAG2_DAX_BIT - 1), C1,
+         0, TYP_NONE },
        { NULL }
 };