]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: verify dinode header first
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 27 Feb 2018 04:43:17 +0000 (22:43 -0600)
committerEric Sandeen <sandeen@redhat.com>
Tue, 27 Feb 2018 04:43:17 +0000 (22:43 -0600)
commit98703400d0a4c4c56874705ab692b14398068650
tree3ea72446bf30b630038e309531c2aad295587b1b
parent1e697959c36552580795dc81f9697fb9681c63b7
xfs: verify dinode header first

Source kernel commit: 50aa90ef03007beca2c9108993f5b4f2bb4f0a66

Move the v3 inode integrity information (crc, owner, metauuid) before we
look at anything else in the inode so that we don't waste time on a torn
write or a totally garbled block.  This makes xfs_dinode_verify more
consistent with the other verifiers.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_inode_buf.c