]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_info: Report NREXT64 feature status
authorChandan Babu R <chandan.babu@oracle.com>
Wed, 22 Jun 2022 19:28:52 +0000 (14:28 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Wed, 22 Jun 2022 19:28:52 +0000 (14:28 -0500)
This commit adds support to libfrog to obtain information about the
availability of NREXT64 feature in the underlying filesystem.

Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandan.babu@oracle.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libfrog/fsgeom.c

index 4f1a18424ae0744d1b55d61795c2ff5aae3c7f18..3e7f0797d8bd42eb3c09ee87812b689d42dc1e44 100644 (file)
@@ -30,6 +30,7 @@ xfs_report_geom(
        int                     reflink_enabled;
        int                     bigtime_enabled;
        int                     inobtcount;
+       int                     nrext64;
 
        isint = geo->logstart > 0;
        lazycount = geo->flags & XFS_FSOP_GEOM_FLAGS_LAZYSB ? 1 : 0;
@@ -47,12 +48,13 @@ xfs_report_geom(
        reflink_enabled = geo->flags & XFS_FSOP_GEOM_FLAGS_REFLINK ? 1 : 0;
        bigtime_enabled = geo->flags & XFS_FSOP_GEOM_FLAGS_BIGTIME ? 1 : 0;
        inobtcount = geo->flags & XFS_FSOP_GEOM_FLAGS_INOBTCNT ? 1 : 0;
+       nrext64 = geo->flags & XFS_FSOP_GEOM_FLAGS_NREXT64 ? 1 : 0;
 
        printf(_(
 "meta-data=%-22s isize=%-6d agcount=%u, agsize=%u blks\n"
 "         =%-22s sectsz=%-5u attr=%u, projid32bit=%u\n"
 "         =%-22s crc=%-8u finobt=%u, sparse=%u, rmapbt=%u\n"
-"         =%-22s reflink=%-4u bigtime=%u inobtcount=%u\n"
+"         =%-22s reflink=%-4u bigtime=%u inobtcount=%u nrext64=%u\n"
 "data     =%-22s bsize=%-6u blocks=%llu, imaxpct=%u\n"
 "         =%-22s sunit=%-6u swidth=%u blks\n"
 "naming   =version %-14u bsize=%-6u ascii-ci=%d, ftype=%d\n"
@@ -62,7 +64,7 @@ xfs_report_geom(
                mntpoint, geo->inodesize, geo->agcount, geo->agblocks,
                "", geo->sectsize, attrversion, projid32bit,
                "", crcs_enabled, finobt_enabled, spinodes, rmapbt_enabled,
-               "", reflink_enabled, bigtime_enabled, inobtcount,
+               "", reflink_enabled, bigtime_enabled, inobtcount, nrext64,
                "", geo->blocksize, (unsigned long long)geo->datablocks,
                        geo->imaxpct,
                "", geo->sunit, geo->swidth,