From: Brian Foster Date: Thu, 30 Jul 2015 23:18:07 +0000 (+1000) Subject: db: show sparse inodes feature state in version command output X-Git-Tag: v4.2.0-rc1~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8db0171bb9910589aaa44394eba1d06583e50d1;p=thirdparty%2Fxfsprogs-dev.git db: show sparse inodes feature state in version command output The xfs_db version command prints a string for each of the various features supported by a filesystem. Include 'SPARSE_INODES' in the version string when sparse inode chunk allocation is supported by the fs. Signed-off-by: Brian Foster Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- diff --git a/db/sb.c b/db/sb.c index d8be938c3..b36680bef 100644 --- a/db/sb.c +++ b/db/sb.c @@ -650,6 +650,8 @@ version_string( strcat(s, ",FTYPE"); if (xfs_sb_version_hasfinobt(sbp)) strcat(s, ",FINOBT"); + if (xfs_sb_version_hassparseinodes(sbp)) + strcat(s, ",SPARSE_INODES"); return s; }