From: Darrick J. Wong Date: Fri, 20 Nov 2020 22:03:27 +0000 (-0500) Subject: xfs_db: support displaying inode btree block counts in AGI header X-Git-Tag: xfsprogs-5.10-fixes_2020-12-06~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13b8917251601e06660ed6ebe6bdeafa4c431ca3;p=thirdparty%2Fxfsprogs-dev.git xfs_db: support displaying inode btree block counts in AGI header Fix up xfs_db to support displaying the btree block counts. Signed-off-by: Darrick J. Wong Reviewed-by: Brian Foster Signed-off-by: Eric Sandeen --- diff --git a/db/agi.c b/db/agi.c index bf21b2d40..cfb4f7b85 100644 --- a/db/agi.c +++ b/db/agi.c @@ -48,6 +48,8 @@ const field_t agi_flds[] = { { "lsn", FLDT_UINT64X, OI(OFF(lsn)), C1, 0, TYP_NONE }, { "free_root", FLDT_AGBLOCK, OI(OFF(free_root)), C1, 0, TYP_FINOBT }, { "free_level", FLDT_UINT32D, OI(OFF(free_level)), C1, 0, TYP_NONE }, + { "ino_blocks", FLDT_UINT32D, OI(OFF(iblocks)), C1, 0, TYP_NONE }, + { "fino_blocks", FLDT_UINT32D, OI(OFF(fblocks)), C1, 0, TYP_NONE }, { NULL } }; diff --git a/db/sb.c b/db/sb.c index 8a303422b..e3b1fe0b2 100644 --- a/db/sb.c +++ b/db/sb.c @@ -687,6 +687,8 @@ version_string( strcat(s, ",RMAPBT"); if (xfs_sb_version_hasreflink(sbp)) strcat(s, ",REFLINK"); + if (xfs_sb_version_hasinobtcounts(sbp)) + strcat(s, ",INOBTCNT"); return s; }