From: Zirong Lang Date: Thu, 21 Sep 2017 22:00:01 +0000 (-0500) Subject: xfs_db: version command misses RMAPBT feature string X-Git-Tag: v4.13.0-rc2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f810b1bc920dcd79237fbbc45d93b378e782c57d;p=thirdparty%2Fxfsprogs-dev.git xfs_db: version command misses RMAPBT feature string When I create a XFS with "rmapbt=1,reflink=1", "xfs_db -c version" didn't show RMAPBT feature. But REFLINK can be found. # mkfs/mkfs.xfs -f -m rmapbt=1,reflink=1 /dev/sda3 # db/xfs_db -c version /dev/sda3 versionnum [0xb4a5+0x18a] = V5,NLINK,DIRV2,ALIGN,LOGV2,EXTFLG,MOREBITS, ATTR2,LAZYSBCOUNT,PROJID32BIT,CRC,FTYPE,FINOBT,REFLINK Signed-off-by: Zorro Lang Reviewed-by: Brian Foster Reviewed-by: Darrick J. Wong Signed-off-by: Eric Sandeen --- diff --git a/db/sb.c b/db/sb.c index f19248d75..c7fbfd602 100644 --- a/db/sb.c +++ b/db/sb.c @@ -694,6 +694,8 @@ version_string( strcat(s, ",SPARSE_INODES"); if (xfs_sb_version_hasmetauuid(sbp)) strcat(s, ",META_UUID"); + if (xfs_sb_version_hasrmapbt(sbp)) + strcat(s, ",RMAPBT"); if (xfs_sb_version_hasreflink(sbp)) strcat(s, ",REFLINK"); return s;