Whamcloud - gitweb
libext2fs: calculate and verify superblock checksums
authorDarrick J. Wong <djwong@us.ibm.com>
Fri, 3 Aug 2012 00:47:44 +0000 (20:47 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 3 Aug 2012 00:47:44 +0000 (20:47 -0400)
commitd4ca3e40cabd4ec5124ab9aa958fa9e5337aed39
tree978e418024fe26f3b115470cadc336fee72d1ccf
parentfa0ecf18f5f588f144ad5e022787c9ac5b5c0f2a
libext2fs: calculate and verify superblock checksums

Calculate and verify the superblock checksums.  Each copy of the
superblock records the number of the group it's in and the FS UUID, so
we can simply checksum the whole block.

Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/closefs.c
lib/ext2fs/csum.c
lib/ext2fs/ext2_err.et.in
lib/ext2fs/ext2fs.h
lib/ext2fs/openfs.c