xfs: repair superblocks
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 30 May 2018 05:18:12 +0000 (22:18 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 30 May 2018 15:03:15 +0000 (08:03 -0700)
commitd25522f10cfa342a20867086a516c45c87b0877c
tree1d8c66aeb7f9ed02c1247c258947abd2a38f1c4a
parent7e85bc6c873215f19a0b750febfb097d1f3c3292
xfs: repair superblocks

If one of the backup superblocks is found to differ seriously from
superblock 0, write out a fresh copy from the in-core sb.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/Makefile
fs/xfs/libxfs/xfs_sb.c
fs/xfs/libxfs/xfs_sb.h
fs/xfs/scrub/agheader_repair.c [new file with mode: 0644]
fs/xfs/scrub/repair.h
fs/xfs/scrub/scrub.c