From 0058e773c2c2456bd8fb837e65ae33c76d0748df Mon Sep 17 00:00:00 2001 From: Brian Foster Date: Tue, 23 Jun 2015 15:08:47 +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 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; } -- 2.50.1