diff mbox series

[23/32] xfs_db: report parent pointers in version command

Message ID 170405006407.1804688.3081180575836582476.stgit@frogsfrogsfrogs (mailing list archive)
State Superseded, archived
Headers show
Series [01/32] xfs: add parent pointer support to attribute code | expand

Commit Message

Darrick J. Wong Dec. 31, 2023, 11:11 p.m. UTC
From: Darrick J. Wong <djwong@kernel.org>

Report the presents of PARENT pointers from the version subcommand.

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 b48767f47fe..9a5d665dfbd 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_parent(mp))
+		strcat(s, ",PARENT");
 	return s;
 }