From: Darrick J. Wong Date: Fri, 17 Nov 2017 04:11:32 +0000 (-0600) Subject: xfs: scrub the secondary superblocks X-Git-Tag: v4.15.0-rc1~143^2~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f253a9796b492c6b2095ed18ea6a9540a8f30d9b;p=thirdparty%2Fxfsprogs-dev.git xfs: scrub the secondary superblocks Source kernel commit: 21fb4cb1981ef7e02f35a42b2a5ae619517dfe1b Ensure that the geometry presented in the backup superblocks matches the primary superblock so that repair can recover the filesystem if that primary gets corrupted. 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 cff4358d9..3fe66c23b 100644 --- a/libxfs/xfs_fs.h +++ b/libxfs/xfs_fs.h @@ -505,9 +505,10 @@ struct xfs_scrub_metadata { /* Scrub subcommands. */ #define XFS_SCRUB_TYPE_PROBE 0 /* presence test ioctl */ +#define XFS_SCRUB_TYPE_SB 1 /* superblock */ /* Number of scrub subcommands. */ -#define XFS_SCRUB_TYPE_NR 1 +#define XFS_SCRUB_TYPE_NR 2 /* i: Repair this metadata. */ #define XFS_SCRUB_IFLAG_REPAIR (1 << 0)