diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2015-01-19 21:59:58 +0100 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2015-01-19 21:59:58 +0100 |
commit | b6924225c292593189e90604c395f87cbd4130ba (patch) | |
tree | 3b303bf40b4d5669e6ee556092895d74379d80fc /fs/jbd2 | |
parent | Merge tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kerne... (diff) | |
download | linux-b6924225c292593189e90604c395f87cbd4130ba.tar.xz linux-b6924225c292593189e90604c395f87cbd4130ba.zip |
jbd2: complain about descriptor block checksum errors
We should complain in dmesg when journal recovery fails on account of
the descriptor block being corrupt, so that the diagnostic data can
be recovered.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/jbd2')
-rw-r--r-- | fs/jbd2/recovery.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/jbd2/recovery.c b/fs/jbd2/recovery.c index bcbef08a4d8f..b5128c6e63ad 100644 --- a/fs/jbd2/recovery.c +++ b/fs/jbd2/recovery.c @@ -524,6 +524,9 @@ static int do_one_pass(journal_t *journal, if (descr_csum_size > 0 && !jbd2_descr_block_csum_verify(journal, bh->b_data)) { + printk(KERN_ERR "JBD2: Invalid checksum " + "recovering block %lu in log\n", + next_log_block); err = -EIO; brelse(bh); goto failed; |