From: Darrick J. Wong Date: Thu, 21 Nov 2024 00:24:14 +0000 (-0800) Subject: libfrog: report metadata directories in the geometry report X-Git-Tag: v6.13.0~171 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=50d69630adb9a8a7222a45ef1888cece59e010e0;p=thirdparty%2Fxfsprogs-dev.git libfrog: report metadata directories in the geometry report Report the presence of a metadata directory tree in the geometry report. Signed-off-by: "Darrick J. Wong" Reviewed-by: Christoph Hellwig --- diff --git a/libfrog/fsgeom.c b/libfrog/fsgeom.c index 597c38b1..67b4e657 100644 --- a/libfrog/fsgeom.c +++ b/libfrog/fsgeom.c @@ -33,6 +33,7 @@ xfs_report_geom( int nrext64; int exchangerange; int parent; + int metadir; isint = geo->logstart > 0; lazycount = geo->flags & XFS_FSOP_GEOM_FLAGS_LAZYSB ? 1 : 0; @@ -53,13 +54,14 @@ xfs_report_geom( nrext64 = geo->flags & XFS_FSOP_GEOM_FLAGS_NREXT64 ? 1 : 0; exchangerange = geo->flags & XFS_FSOP_GEOM_FLAGS_EXCHANGE_RANGE ? 1 : 0; parent = geo->flags & XFS_FSOP_GEOM_FLAGS_PARENT ? 1 : 0; + metadir = geo->flags & XFS_FSOP_GEOM_FLAGS_METADIR ? 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 nrext64=%u\n" -" =%-22s exchange=%-3u\n" +" =%-22s exchange=%-3u metadir=%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, parent=%d\n" @@ -70,7 +72,7 @@ xfs_report_geom( "", geo->sectsize, attrversion, projid32bit, "", crcs_enabled, finobt_enabled, spinodes, rmapbt_enabled, "", reflink_enabled, bigtime_enabled, inobtcount, nrext64, - "", exchangerange, + "", exchangerange, metadir, "", geo->blocksize, (unsigned long long)geo->datablocks, geo->imaxpct, "", geo->sunit, geo->swidth,