]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: scrub inode block mappings
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: 99d9d8d05da26f47aa8412397407f962bcb4713a

Scrub an individual inode's block mappings to make sure they make sense.

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 657af5190147fb8f8380f63c49d3ff7bbd689616..a8f007d1804e969229ea07d3be2399f8c216e272 100644 (file)
@@ -516,9 +516,12 @@ struct xfs_scrub_metadata {
 #define XFS_SCRUB_TYPE_RMAPBT  9       /* reverse mapping btree */
 #define XFS_SCRUB_TYPE_REFCNTBT        10      /* reference count btree */
 #define XFS_SCRUB_TYPE_INODE   11      /* inode record */
+#define XFS_SCRUB_TYPE_BMBTD   12      /* data fork block mapping */
+#define XFS_SCRUB_TYPE_BMBTA   13      /* attr fork block mapping */
+#define XFS_SCRUB_TYPE_BMBTC   14      /* CoW fork block mapping */
 
 /* Number of scrub subcommands. */
-#define XFS_SCRUB_TYPE_NR      12
+#define XFS_SCRUB_TYPE_NR      15
 
 /* i: Repair this metadata. */
 #define XFS_SCRUB_IFLAG_REPAIR         (1 << 0)