]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5f889181ba57c1a1ad95dd1e478db469093ae5d1
tree1d8c66aeb7f9ed02c1247c258947abd2a38f1c4a
parent75262d7c02385aa58d612fcf6cbc3371cf98424a
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