diff mbox series

[31/45] xfs_db: report rtgroups via version command

Message ID 167243878771.731133.5565215367768506.stgit@magnolia (mailing list archive)
State Superseded, archived
Headers show
Series libxfs: shard the realtime section | expand

Commit Message

Darrick J. Wong Dec. 30, 2022, 10:19 p.m. UTC
From: Darrick J. Wong <djwong@kernel.org>

Report the rtgroups feature in the version command output.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
---
 db/sb.c |    2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/db/sb.c b/db/sb.c
index 36d4c317dba..52c5edc065a 100644
--- a/db/sb.c
+++ b/db/sb.c
@@ -852,6 +852,8 @@  version_string(
 		strcat(s, ",NREXT64");
 	if (xfs_has_metadir(mp))
 		strcat(s, ",METADIR");
+	if (xfs_has_rtgroups(mp))
+		strcat(s, ",RTGROUPS");
 	return s;
 }