diff mbox series

[17/20] xfs_db: dump verity features and metadata

Message ID 171069247910.2685643.16760656404093565318.stgit@frogsfrogsfrogs (mailing list archive)
State Superseded
Headers show
Series [01/20] xfsprogs: add parent pointer support to attribute code | expand

Commit Message

Darrick J. Wong March 17, 2024, 4:38 p.m. UTC
From: Darrick J. Wong <djwong@kernel.org>

Teach the debugger how to decode the merkle tree block number in the
attr name, and to display the fact that this is a verity filesystem.

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 b48767f4..cd51f748 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_verity(mp))
+		strcat(s, ",VERITY");
 	return s;
 }