dm flakey: add corrupt_bio_byte feature
authorMike Snitzer <snitzer@redhat.com>
Tue, 2 Aug 2011 11:32:06 +0000 (12:32 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Tue, 2 Aug 2011 11:32:06 +0000 (12:32 +0100)
commita3998799fb4df0b0af8271a7d50c4269032397aa
tree2a0dc0a082519afd70cc991da36f620bc21272fe
parentb26f5e3d7127487e934758c1fbe05d683b082cb0
dm flakey: add corrupt_bio_byte feature

Add corrupt_bio_byte feature to simulate corruption by overwriting a byte at a
specified position with a specified value during intervals when the device is
"down".

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Documentation/device-mapper/dm-flakey.txt
drivers/md/dm-flakey.c