From: Darrick J. Wong Date: Fri, 17 Nov 2017 04:11:32 +0000 (-0600) Subject: xfs: scrub inode block mappings X-Git-Tag: v4.15.0-rc1~143^2~60 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c123295fc7f85b8a5f4fb8ae246a36fd75ac7cd9;p=thirdparty%2Fxfsprogs-dev.git xfs: scrub inode block mappings Source kernel commit: 99d9d8d05da26f47aa8412397407f962bcb4713a Scrub an individual inode's block mappings to make sure they make sense. Signed-off-by: Darrick J. Wong Reviewed-by: Dave Chinner Signed-off-by: Eric Sandeen --- diff --git a/libxfs/xfs_fs.h b/libxfs/xfs_fs.h index 657af5190..a8f007d18 100644 --- a/libxfs/xfs_fs.h +++ b/libxfs/xfs_fs.h @@ -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)