From: Brian Foster Date: Tue, 23 Jun 2015 05:08:47 +0000 (+1000) Subject: db: show sparse inodes feature state in version command output X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0058e773c2c2456bd8fb837e65ae33c76d0748df;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 3bbd169f7..0e15d40cb 100644 --- a/db/sb.c +++ b/db/sb.c @@ -663,6 +663,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; }