mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
dm integrity: print device name in integrity_metadata() error message
Similar to f710126cfc
("dm crypt: print
device name in integrity error message"), this message should also
better identify the device with the integrity failure.
Signed-off-by: Erich Eckner <git@eckner.net>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
This commit is contained in:
parent
3fd53533a8
commit
eaab4bde6e
@ -1558,7 +1558,8 @@ again:
|
||||
checksums_ptr - checksums, !dio->write ? TAG_CMP : TAG_WRITE);
|
||||
if (unlikely(r)) {
|
||||
if (r > 0) {
|
||||
DMERR_LIMIT("Checksum failed at sector 0x%llx",
|
||||
char b[BDEVNAME_SIZE];
|
||||
DMERR_LIMIT("%s: Checksum failed at sector 0x%llx", bio_devname(bio, b),
|
||||
(unsigned long long)(sector - ((r + ic->tag_size - 1) / ic->tag_size)));
|
||||
r = -EILSEQ;
|
||||
atomic64_inc(&ic->number_of_mismatches);
|
||||
|
Loading…
Reference in New Issue
Block a user