Skip to content

Commit

Permalink
dm integrity: print device name in integrity_metadata() error message
Browse files Browse the repository at this point in the history
Similar to f710126 ("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>
  • Loading branch information
Erich Eckner authored and Mike Snitzer committed Mar 24, 2020
1 parent 3fd5353 commit eaab4bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/md/dm-integrity.c
Original file line number Diff line number Diff line change
Expand Up @@ -1558,7 +1558,8 @@ static void integrity_metadata(struct work_struct *w)
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);
Expand Down

0 comments on commit eaab4bd

Please sign in to comment.