diff options
author | Josef Bacik <josef@redhat.com> | 2011-03-24 09:54:24 -0400 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2011-03-24 09:54:24 -0400 |
commit | 3407ef5262b55ca5d7139d2b555ef792fe531eec (patch) | |
tree | fb5e083851c636e515095bb3eb90325f4b175129 /drivers/md/Kconfig | |
parent | 024d37e95ec4a7ccc256973ab2feab01f4fbdd2d (diff) |
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 | |||
327 | ---help--- | 327 | ---help--- |
328 | Generate udev events for DM events. | 328 | Generate udev events for DM events. |
329 | 329 | ||
330 | config DM_FLAKEY | ||
331 | tristate "Flakey target (EXPERIMENTAL)" | ||
332 | depends on BLK_DEV_DM && EXPERIMENTAL | ||
333 | ---help--- | ||
334 | A target that intermittently fails I/O for debugging purposes. | ||
335 | |||
330 | endif # MD | 336 | endif # MD |