[PATCH 13/28] db: show sparse inodes feature state in version command output

Brian Foster
2015-06-02T18:42:07Z

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@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;