]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: preserve in-core meta_uuid while zeroing unused sb portions
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 18 Aug 2016 23:27:30 +0000 (09:27 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 18 Aug 2016 23:27:30 +0000 (09:27 +1000)
commit2110aea0c86626aaad889d62d15add5b6ce826d6
tree9dd0969b7f09a4863f9d034769d21219da5fd7b0
parent1c47bd67e8c1a41e3d892acc7f0c220650709602
xfs_repair: preserve in-core meta_uuid while zeroing unused sb portions

If we zero unused parts of the superblock, we must preserve meta_uuid
across the zeroing because meta_uuid is used to verify the v5 format
checksums even on non-metauuid filesystems.  If we don't, the next
thing that happens is that all metadata fails in the verifier and the
whole filesystem is "toast".

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
repair/agheader.c