From b8db0171bb9910589aaa44394eba1d06583e50d1 Mon Sep 17 00:00:00 2001 From: Brian Foster Date: Fri, 31 Jul 2015 09:18:07 +1000 Subject: [PATCH] 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 --- db/sb.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.47.2