]> git.baikalelectronics.ru Git - kernel.git/commit
dm dust: add limited write failure mode
authorBryan Gurney <bgurney@redhat.com>
Tue, 22 Oct 2019 20:46:01 +0000 (16:46 -0400)
committerMike Snitzer <snitzer@redhat.com>
Tue, 5 Nov 2019 20:25:34 +0000 (15:25 -0500)
commitef5ac4f796576054868ddf39d1c148d06d5a6cb2
tree0203357542ba038301a43950d2d84aa740dc7bf7
parent200885bc61ad6f2f1da15ad77676d358bddb63d0
dm dust: add limited write failure mode

Add a limited write failure mode which allows a write to a block to fail
a specified amount of times, prior to remapping.  The "addbadblock"
message is extended to allow specifying the limited number of times a
write fails.

Example: add bad block on block 60, with 5 write failures:
  dmsetup message 0 dust1 addbadblock 60 5

The write failure counter will be printed for newly added bad blocks.

Signed-off-by: Bryan Gurney <bgurney@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-dust.c