summaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs
diff options
context:
space:
mode:
authorDarrick J. Wong2017-10-18 06:37:40 +0200
committerDarrick J. Wong2017-10-27 00:38:25 +0200
commitefa7a99ce1f8615aca7b0ff3122a1ae14e4d1cdc (patch)
treed133547af1f14377606a6eee2ddcf23b9217e660 /fs/xfs/libxfs
parentxfs: scrub the AGI (diff)
downloadkernel-qcow2-linux-efa7a99ce1f8615aca7b0ff3122a1ae14e4d1cdc.tar.gz
kernel-qcow2-linux-efa7a99ce1f8615aca7b0ff3122a1ae14e4d1cdc.tar.xz
kernel-qcow2-linux-efa7a99ce1f8615aca7b0ff3122a1ae14e4d1cdc.zip
xfs: scrub free space btrees
Check the extent records free space btrees to ensure that the values look sane. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/libxfs')
-rw-r--r--fs/xfs/libxfs/xfs_fs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_fs.h b/fs/xfs/libxfs/xfs_fs.h
index 1e326dd8ad92..1e23d13e7b51 100644
--- a/fs/xfs/libxfs/xfs_fs.h
+++ b/fs/xfs/libxfs/xfs_fs.h
@@ -488,9 +488,11 @@ struct xfs_scrub_metadata {
#define XFS_SCRUB_TYPE_AGF 2 /* AG free header */
#define XFS_SCRUB_TYPE_AGFL 3 /* AG free list */
#define XFS_SCRUB_TYPE_AGI 4 /* AG inode header */
+#define XFS_SCRUB_TYPE_BNOBT 5 /* freesp by block btree */
+#define XFS_SCRUB_TYPE_CNTBT 6 /* freesp by length btree */
/* Number of scrub subcommands. */
-#define XFS_SCRUB_TYPE_NR 5
+#define XFS_SCRUB_TYPE_NR 7
/* i: Repair this metadata. */
#define XFS_SCRUB_IFLAG_REPAIR (1 << 0)