[PATCH 13/28] db: show sparse inodes feature state in version command output
Brian Foster
bfoster at redhat.com
Tue Jun 2 13:41:46 CDT 2015
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 <bfoster at redhat.com>
---
db/sb.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/db/sb.c b/db/sb.c
index 4208569..ff2318c 100644
--- a/db/sb.c
+++ b/db/sb.c
@@ -661,6 +661,8 @@ version_string(
strcat(s, ",CRC");
if (xfs_sb_version_hasftype(sbp))
strcat(s, ",FTYPE");
+ if (xfs_sb_version_hassparseinodes(sbp))
+ strcat(s, ",SPARSE_INODES");
return s;
}
--
1.9.3
More information about the xfs
mailing list