Whamcloud - gitweb
libext2fs: block group checksum should use metadata_csum algorithm
authorDarrick J. Wong <djwong@us.ibm.com>
Fri, 3 Aug 2012 00:47:45 +0000 (20:47 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 3 Aug 2012 00:47:45 +0000 (20:47 -0400)
commit5b58dc2304f06953e1d8314ea570cc3befec95bc
tree7a6ce3234d5fb7db763bbdc53d6cdce1218ce664
parent53c2c8afeade037cf16b0631271a850b04c14c78
libext2fs: block group checksum should use metadata_csum algorithm

Change the block group algorithm to use the same algorithm as the rest
of the metadata_csum.  This mostly involves providing a helper
function to tell if group descriptors should have checksums set or
verified, and modifying the gdt checksum code to use the correct
algorithm.

Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
debugfs/debugfs.c
lib/ext2fs/alloc.c
lib/ext2fs/alloc_stats.c
lib/ext2fs/csum.c
lib/ext2fs/ext2fs.h
lib/ext2fs/initialize.c
lib/ext2fs/inode.c
lib/ext2fs/openfs.c
lib/ext2fs/rw_bitmaps.c
misc/dumpe2fs.c
resize/resize2fs.c