]> www.infradead.org Git - users/hch/xfsprogs.git/commitdiff
xfs_db: report rtgroups via version command
authorDarrick J. Wong <djwong@kernel.org>
Wed, 3 Jul 2024 21:22:08 +0000 (14:22 -0700)
committerChristoph Hellwig <hch@lst.de>
Tue, 6 Aug 2024 12:53:50 +0000 (05:53 -0700)
Report the rtgroups feature in the version command output.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
db/sb.c

diff --git a/db/sb.c b/db/sb.c
index 7b1c0f6d7d14e2b01eda046ee41be6019e9782b1..c3c9644ceee1d1d2c628659eea25fb23fa3a04ac 100644 (file)
--- a/db/sb.c
+++ b/db/sb.c
@@ -828,6 +828,10 @@ version_string(
                strcat(s, ",PARENT");
        if (xfs_has_metadir(mp))
                strcat(s, ",METADIR");
+       if (xfs_has_rtgroups(mp))
+               strcat(s, ",RTGROUPS");
+       if (xfs_has_rtsb(mp))
+               strcat(s, ",RTSB");
        return s;
 }