]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: add CRC checking to dir2 free blocks
authorDave Chinner <dchinner@redhat.com>
Fri, 7 Jun 2013 00:25:33 +0000 (10:25 +1000)
committerBen Myers <bpm@sgi.com>
Tue, 6 Aug 2013 18:10:35 +0000 (13:10 -0500)
commit3303b09f301c331b15f75c458893cb8fb05f9a88
tree88cfbda053edf23f66cefa7433fa09cdc260fa64
parent693fc8f69611ed5996f063581e50ef3ce1c35aaa
xfs: add CRC checking to dir2 free blocks

This addition follows the same pattern as the dir2 block CRCs, but
with a few differences. The main difference is that the free block
header is different between the v2 and v3 formats, so an "in-core"
free block header has been added and _todisk/_from_disk functions
used to abstract the differences in structure format from the code.
This is similar to the on-disk superblock versus the in-core
superblock setup. The in-core strucutre is populated when the buffer
is read from disk, all the in memory checks and modifications are
done on the in-core version of the structure which is written back
to the buffer before the buffer is logged.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
db/check.c
include/xfs_dir2_format.h
libxfs/xfs_dir2_leaf.c
libxfs/xfs_dir2_node.c
repair/phase6.c