ext4: validate external journal superblock checksum
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 11 Sep 2014 15:44:36 +0000 (11:44 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 11 Sep 2014 15:44:36 +0000 (11:44 -0400)
commitdf4763bea5b04d8eed941cfe3df51f22cfe95570
treebc084484cb2c1b14db9c1558a23a6ebc16b05ee7
parentfeb8c6d3dd0f2cc0e1c3376d099cf298c5f2c2c8
ext4: validate external journal superblock checksum

If the external journal device has metadata_csum enabled, verify
that the superblock checksum matches the block before we try to
mount.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/super.c