From: Darrick J. Wong <djwong@xxxxxxxxxx> Report metadir support if we have it enabled. Signed-off-by: Darrick J. Wong <djwong@xxxxxxxxxx> --- db/inode.c | 3 +++ db/sb.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/db/inode.c b/db/inode.c index c9b506b905d..4e2be6a1156 100644 --- a/db/inode.c +++ b/db/inode.c @@ -207,6 +207,9 @@ const field_t inode_v3_flds[] = { { "nrext64", FLDT_UINT1, OI(COFF(flags2) + bitsz(uint64_t) - XFS_DIFLAG2_NREXT64_BIT - 1), C1, 0, TYP_NONE }, + { "metadir", FLDT_UINT1, + OI(COFF(flags2) + bitsz(uint64_t) - XFS_DIFLAG2_METADIR_BIT-1), C1, + 0, TYP_NONE }, { NULL } }; diff --git a/db/sb.c b/db/sb.c index e738065b5be..002736b02b7 100644 --- a/db/sb.c +++ b/db/sb.c @@ -708,6 +708,8 @@ version_string( strcat(s, ",NREXT64"); if (xfs_has_parent(mp)) strcat(s, ",PARENT"); + if (xfs_has_metadir(mp)) + strcat(s, ",METADIR"); return s; }