diff mbox series

[05/12] xfs_db: advertise exchange-range in the version command

Message ID 171988116786.2006519.17065535694551373149.stgit@frogsfrogsfrogs (mailing list archive)
State New
Headers show
Series [01/12] man: document the exchange-range ioctl | expand

Commit Message

Darrick J. Wong July 2, 2024, 12:54 a.m. UTC
From: Darrick J. Wong <djwong@kernel.org>

Amend the version command to advertise exchange-range support.

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

Comments

Christoph Hellwig July 2, 2024, 5:10 a.m. UTC | #1
Looks good:

Reviewed-by: Christoph Hellwig <hch@lst.de>
diff mbox series

Patch

diff --git a/db/sb.c b/db/sb.c
index b48767f47fe9..c39011634198 100644
--- a/db/sb.c
+++ b/db/sb.c
@@ -706,6 +706,8 @@  version_string(
 		strcat(s, ",NEEDSREPAIR");
 	if (xfs_has_large_extent_counts(mp))
 		strcat(s, ",NREXT64");
+	if (xfs_has_exchange_range(mp))
+		strcat(s, ",EXCHANGE");
 	return s;
 }