diff options
author | Josef Bacik <josef@redhat.com> | 2011-03-24 14:54:24 +0100 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2011-03-24 14:54:24 +0100 |
commit | 3407ef5262b55ca5d7139d2b555ef792fe531eec (patch) | |
tree | fb5e083851c636e515095bb3eb90325f4b175129 /drivers/md/Kconfig | |
parent | dm: fix opening log and cow devices for read only tables (diff) | |
download | linux-3407ef5262b55ca5d7139d2b555ef792fe531eec.tar.xz linux-3407ef5262b55ca5d7139d2b555ef792fe531eec.zip |
dm: add flakey target
This target is the same as the linear target except that it returns I/O
errors periodically. It's been found useful in simulating failing
devices for testing purposes.
I needed a dm target to do some failure testing on btrfs's raid code, and
Mike pointed me at this.
Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/Kconfig')
-rw-r--r-- | drivers/md/Kconfig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/md/Kconfig b/drivers/md/Kconfig index 98d9ec85e0eb..8420129fc5ee 100644 --- a/drivers/md/Kconfig +++ b/drivers/md/Kconfig @@ -327,4 +327,10 @@ config DM_UEVENT ---help--- Generate udev events for DM events. +config DM_FLAKEY + tristate "Flakey target (EXPERIMENTAL)" + depends on BLK_DEV_DM && EXPERIMENTAL + ---help--- + A target that intermittently fails I/O for debugging purposes. + endif # MD |