dm: add flakey target
authorJosef Bacik <josef@redhat.com>
Thu, 24 Mar 2011 13:54:24 +0000 (13:54 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 24 Mar 2011 13:54:24 +0000 (13:54 +0000)
commit3407ef5262b55ca5d7139d2b555ef792fe531eec
treefb5e083851c636e515095bb3eb90325f4b175129
parent024d37e95ec4a7ccc256973ab2feab01f4fbdd2d
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>
Documentation/device-mapper/dm-flakey.txt [new file with mode: 0644]
drivers/md/Kconfig
drivers/md/Makefile
drivers/md/dm-flakey.c [new file with mode: 0644]