]> www.infradead.org Git - users/hch/xfsprogs.git/commitdiff
xfs: scrub the realtime rmapbt
authorDarrick J. Wong <djwong@kernel.org>
Wed, 3 Jul 2024 21:22:19 +0000 (14:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 16 Jul 2024 22:49:20 +0000 (15:49 -0700)
Check the realtime reverse mapping btree against the rtbitmap, and
modify the rtbitmap scrub to check against the rtrmapbt.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
libxfs/xfs_fs.h
man/man2/ioctl_xfs_scrub_metadata.2

index 63f0527f2f9763c34334fdbfb33842335418c34c..05bbe6fac4560119d99a4faa0fc2c75498e33356 100644 (file)
@@ -738,9 +738,10 @@ struct xfs_scrub_metadata {
 #define XFS_SCRUB_TYPE_METAPATH        29      /* metadata directory tree paths */
 #define XFS_SCRUB_TYPE_RGSUPER 30      /* realtime superblock */
 #define XFS_SCRUB_TYPE_RGBITMAP        31      /* realtime group bitmap */
+#define XFS_SCRUB_TYPE_RTRMAPBT        32      /* rtgroup reverse mapping btree */
 
 /* Number of scrub subcommands. */
-#define XFS_SCRUB_TYPE_NR      32
+#define XFS_SCRUB_TYPE_NR      33
 
 /*
  * This special type code only applies to the vectored scrub implementation.
index dc439897c98888d2d1b50d1cb7b955819136ae1a..79875968d1cec24242ac28f78e78fb4574a77480 100644 (file)
@@ -98,9 +98,13 @@ The realtime allocation group number must be given in
 must be zero.
 
 .PP
-.TP
+.nf
 .B XFS_SCRUB_TYPE_RGBITMAP
-Examine a given realtime allocation group's free space bitmap.
+.fi
+.TP
+.B XFS_SCRUB_TYPE_RTRMAPBT
+Examine a given realtime allocation group's free space bitmap or reverse
+mapping btree, respectively.
 Records are checked for obviously incorrect values and cross-referenced
 with other allocation group metadata records to ensure that there are no
 conflicts.