]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: scrub the secondary superblocks
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 18 Oct 2017 04:37:38 +0000 (21:37 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 26 Oct 2017 22:38:24 +0000 (15:38 -0700)
commit9f7aade7b1a3bae1149586253eb98234bb5f6e31
tree5c1adb6c97d3161cd876f2b7dcc76364792e2f20
parent8aa6b7928fca6d198d4582b673962ee55aa3433a
xfs: scrub the secondary superblocks

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 <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/Makefile
fs/xfs/libxfs/xfs_fs.h
fs/xfs/scrub/agheader.c [new file with mode: 0644]
fs/xfs/scrub/common.h
fs/xfs/scrub/scrub.c
fs/xfs/scrub/scrub.h