]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_mdrestore: recalculate sb CRC before writing
authorDave Chinner <dchinner@redhat.com>
Fri, 7 Jun 2013 00:26:04 +0000 (10:26 +1000)
committerBen Myers <bpm@sgi.com>
Tue, 6 Aug 2013 20:57:35 +0000 (15:57 -0500)
commitf3ece21152f91c905edd90e2565de0181f747b60
treed493b163b964a8c0b3222fcf8c15c65489129bc0
parent67e389c554eaaeed98b928cce4b4d1efe1bea3df
xfs_mdrestore: recalculate sb CRC before writing

xfs_mdrestore writes the superblock after modifying it, and so the
CRC is not necessarily correct.  Make sure the CRC is correct
before we write the superblock back.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
mdrestore/xfs_mdrestore.c