]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: scrub refcount btrees
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 17 Nov 2017 04:11:32 +0000 (22:11 -0600)
committerEric Sandeen <sandeen@redhat.com>
Fri, 17 Nov 2017 04:11:32 +0000 (22:11 -0600)
Source kernel commit: edc09b528628afb50904106f36de182a00e7eb40

Plumb in the pieces necessary to check the refcount btree.  If rmap is
available, check the reference count by performing an interval query
against the rmapbt.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_fs.h

index 9b5c002ff3f6c0f2a468e1b4c14ac111aa5c00a1..6226abcaf70708c5645703cbb73a0fe9217cd23c 100644 (file)
@@ -514,9 +514,10 @@ struct xfs_scrub_metadata {
 #define XFS_SCRUB_TYPE_INOBT   7       /* inode btree */
 #define XFS_SCRUB_TYPE_FINOBT  8       /* free inode btree */
 #define XFS_SCRUB_TYPE_RMAPBT  9       /* reverse mapping btree */
+#define XFS_SCRUB_TYPE_REFCNTBT        10      /* reference count btree */
 
 /* Number of scrub subcommands. */
-#define XFS_SCRUB_TYPE_NR      10
+#define XFS_SCRUB_TYPE_NR      11
 
 /* i: Repair this metadata. */
 #define XFS_SCRUB_IFLAG_REPAIR         (1 << 0)