diff options
| author | Ye Bin <[email protected]> | 2023-09-04 18:58:16 +0800 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2023-10-05 22:32:15 -0400 |
| commit | 71cd5a5aa0607073adba3852739b7f8c22bc7b50 (patch) | |
| tree | 4086897aa5e2cac5d2bb83f0eeff3e9c29e8a489 | |
| parent | 248b45b621a77155f81129e6b572ec833edb4cf4 (diff) | |
jbd2: print io_block if check data block checksum failed when do recovery
Now, if check data block checksum failed only print data's block number
then skip write data. However, one data block may in more than one transaction.
In some scenarios, offline analysis is inconvenient. As a result, it is
difficult to locate the areas where data is faulty.
So print 'io_block' if check data block checksum failed.
Signed-off-by: Ye Bin <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
| -rw-r--r-- | fs/jbd2/recovery.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/jbd2/recovery.c b/fs/jbd2/recovery.c index c269a7d29a46..11380ff1fe51 100644 --- a/fs/jbd2/recovery.c +++ b/fs/jbd2/recovery.c @@ -661,7 +661,8 @@ static int do_one_pass(journal_t *journal, printk(KERN_ERR "JBD2: Invalid " "checksum recovering " "data block %llu in " - "log\n", blocknr); + "journal block %lu\n", + blocknr, io_block); block_error = 1; goto skip_write; } |