Signed-off-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx> --- growfs/xfs_growfs.c | 14 +++++++++----- libxfs/xfs_fs.h | 1 + 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/growfs/xfs_growfs.c b/growfs/xfs_growfs.c index 56315f9..2b46480 100644 --- a/growfs/xfs_growfs.c +++ b/growfs/xfs_growfs.c @@ -58,12 +58,13 @@ report_info( int cimode, int ftype_enabled, int finobt_enabled, - int spinodes) + int spinodes, + int rmapbt_enabled) { printf(_( "meta-data=%-22s isize=%-6u agcount=%u, agsize=%u blks\n" " =%-22s sectsz=%-5u attr=%u, projid32bit=%u\n" - " =%-22s crc=%-8u finobt=%u spinodes=%u\n" + " =%-22s crc=%-8u finobt=%u spinodes=%u rmapbt=%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" @@ -73,7 +74,7 @@ report_info( mntpoint, geo.inodesize, geo.agcount, geo.agblocks, "", geo.sectsize, attrversion, projid32bit, - "", crcs_enabled, finobt_enabled, spinodes, + "", crcs_enabled, finobt_enabled, spinodes, rmapbt_enabled, "", geo.blocksize, (unsigned long long)geo.datablocks, geo.imaxpct, "", geo.sunit, geo.swidth, @@ -127,6 +128,7 @@ main(int argc, char **argv) int ftype_enabled = 0; int finobt_enabled; /* free inode btree */ int spinodes; + int rmapbt_enabled; progname = basename(argv[0]); setlocale(LC_ALL, ""); @@ -250,11 +252,13 @@ main(int argc, char **argv) ftype_enabled = geo.flags & XFS_FSOP_GEOM_FLAGS_FTYPE ? 1 : 0; finobt_enabled = geo.flags & XFS_FSOP_GEOM_FLAGS_FINOBT ? 1 : 0; spinodes = geo.flags & XFS_FSOP_GEOM_FLAGS_SPINODES ? 1 : 0; + rmapbt_enabled = geo.flags & XFS_FSOP_GEOM_FLAGS_RMAPBT ? 1 : 0; if (nflag) { report_info(geo, datadev, isint, logdev, rtdev, lazycount, dirversion, logversion, attrversion, projid32bit, crcs_enabled, ci, - ftype_enabled, finobt_enabled, spinodes); + ftype_enabled, finobt_enabled, spinodes, + rmapbt_enabled); exit(0); } @@ -292,7 +296,7 @@ main(int argc, char **argv) report_info(geo, datadev, isint, logdev, rtdev, lazycount, dirversion, logversion, attrversion, projid32bit, crcs_enabled, ci, ftype_enabled, - finobt_enabled, spinodes); + finobt_enabled, spinodes, rmapbt_enabled); ddsize = xi.dsize; dlsize = ( xi.logBBsize? xi.logBBsize : diff --git a/libxfs/xfs_fs.h b/libxfs/xfs_fs.h index d8b733a..56990eb 100644 --- a/libxfs/xfs_fs.h +++ b/libxfs/xfs_fs.h @@ -240,6 +240,7 @@ typedef struct xfs_fsop_resblks { #define XFS_FSOP_GEOM_FLAGS_FTYPE 0x10000 /* inode directory types */ #define XFS_FSOP_GEOM_FLAGS_FINOBT 0x20000 /* free inode btree */ #define XFS_FSOP_GEOM_FLAGS_SPINODES 0x40000 /* sparse inode chunks */ +#define XFS_FSOP_GEOM_FLAGS_RMAPBT 0x80000 /* reverse-mapping btree */ /* * Minimum and maximum sizes need for growth checks. _______________________________________________ xfs mailing list xfs@xxxxxxxxxxx http://oss.sgi.com/mailman/listinfo/xfs