xfs
[Top] [All Lists]

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

To: xfs@xxxxxxxxxxx
Subject: [PATCH 13/28] db: show sparse inodes feature state in version command output
From: Brian Foster <bfoster@xxxxxxxxxx>
Date: Tue, 2 Jun 2015 14:41:46 -0400
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1433270521-62026-1-git-send-email-bfoster@xxxxxxxxxx>
References: <1433270521-62026-1-git-send-email-bfoster@xxxxxxxxxx>
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@xxxxxxxxxx>
---
 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

<Prev in Thread] Current Thread [Next in Thread>