]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
libfrog: list the bigtime feature when reporting geometry
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 20 Nov 2020 22:03:28 +0000 (17:03 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Fri, 20 Nov 2020 22:03:28 +0000 (17:03 -0500)
When we're reporting on a filesystem's geometry, report if the bigtime
feature is enabled on this filesystem.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libfrog/fsgeom.c
libxfs/libxfs_api_defs.h

index bd93924ea795c44d74fded355b939dea95660bcf..14507668e41b389c2a6949c87c0d6da782202eaf 100644 (file)
@@ -28,6 +28,7 @@ xfs_report_geom(
        int                     spinodes;
        int                     rmapbt_enabled;
        int                     reflink_enabled;
+       int                     bigtime_enabled;
 
        isint = geo->logstart > 0;
        lazycount = geo->flags & XFS_FSOP_GEOM_FLAGS_LAZYSB ? 1 : 0;
@@ -43,12 +44,13 @@ xfs_report_geom(
        spinodes = geo->flags & XFS_FSOP_GEOM_FLAGS_SPINODES ? 1 : 0;
        rmapbt_enabled = geo->flags & XFS_FSOP_GEOM_FLAGS_RMAPBT ? 1 : 0;
        reflink_enabled = geo->flags & XFS_FSOP_GEOM_FLAGS_REFLINK ? 1 : 0;
+       bigtime_enabled = geo->flags & XFS_FSOP_GEOM_FLAGS_BIGTIME ? 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=%u\n"
+"         =%-22s reflink=%-4u bigtime=%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"
@@ -58,7 +60,7 @@ xfs_report_geom(
                mntpoint, geo->inodesize, geo->agcount, geo->agblocks,
                "", geo->sectsize, attrversion, projid32bit,
                "", crcs_enabled, finobt_enabled, spinodes, rmapbt_enabled,
-               "", reflink_enabled,
+               "", reflink_enabled, bigtime_enabled,
                "", geo->blocksize, (unsigned long long)geo->datablocks,
                        geo->imaxpct,
                "", geo->sunit, geo->swidth,
index 01d047702e6499d780ae9d7f0f4a546f4a764be0..9492955d84f9f1efd3696fbbac0379e45e6d1b2e 100644 (file)
@@ -99,6 +99,7 @@
 #define xfs_dir_replace                        libxfs_dir_replace
 
 #define xfs_dqblk_repair               libxfs_dqblk_repair
+#define xfs_dquot_from_disk_ts         libxfs_dquot_from_disk_ts
 #define xfs_dquot_verify               libxfs_dquot_verify
 
 #define xfs_finobt_calc_reserves       libxfs_finobt_calc_reserves