]> www.infradead.org Git - users/hch/xfsprogs.git/commitdiff
xfs: scrub the realtime rmapbt
authorDarrick J. Wong <djwong@kernel.org>
Tue, 7 Mar 2023 03:56:00 +0000 (19:56 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 22 Nov 2023 23:03:38 +0000 (15:03 -0800)
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 102b9273360571d824cb5270c2ebe615d4c28155..dcf048aae8c179a172e934ac12c904b6a33f7fff 100644 (file)
@@ -737,9 +737,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.