]> www.infradead.org Git - users/hch/xfsprogs.git/commitdiff
xfs: scrub the realtime refcount btree
authorDarrick J. Wong <djwong@kernel.org>
Wed, 3 Jul 2024 21:22:31 +0000 (14:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 9 Jul 2024 22:37:23 +0000 (15:37 -0700)
Add code to scrub realtime refcount btrees.

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

index 5351a253c956d25a381888b70e77f64ef5a52c40..ec07f3294b88255ac4fccc949af03c3b7caf1283 100644 (file)
@@ -739,9 +739,10 @@ struct xfs_scrub_metadata {
 #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 */
+#define XFS_SCRUB_TYPE_RTREFCBT        33      /* realtime reference count btree */
 
 /* Number of scrub subcommands. */
-#define XFS_SCRUB_TYPE_NR      33
+#define XFS_SCRUB_TYPE_NR      34
 
 /*
  * This special type code only applies to the vectored scrub implementation.
index 79875968d1cec24242ac28f78e78fb4574a77480..e8717b41ccd4983df1c739c20f7820954a96e721 100644 (file)
@@ -100,11 +100,12 @@ must be zero.
 .PP
 .nf
 .B XFS_SCRUB_TYPE_RGBITMAP
+.B XFS_SCRUB_TYPE_RTRMAPBT
 .fi
 .TP
-.B XFS_SCRUB_TYPE_RTRMAPBT
-Examine a given realtime allocation group's free space bitmap or reverse
-mapping btree, respectively.
+.B XFS_SCRUB_TYPE_RTREFCBT
+Examine a given realtime allocation group's free space bitmap, reverse
+mapping btree, or reference count 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.