Most likely user would replace or delete the device when there is a problem about it. We want to test this condition by using the dm error target which will help to create the EIO when needed. Basically first create the linear device and then load the error table to get the EIO when needed. The fist patch will provide the helper dm functions to create such a test case using dm error device. 2nd and 3rd patch uses it to test the device replace and delete, respectively. Note that device delete will need kernel and progs patch, which when not there tests will gracefully fail and will not run respectively. Anand Jain (3): xfstests: btrfs: add functions to create dm-error device xfstests: btrfs: test device replace, with EIO on the src dev xfstests: btrfs: test device delete with EIO on src dev common/dmerror | 65 +++++++++++++++++++++++++++++++++++ common/rc | 24 +++++++++++++ tests/btrfs/087 | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++++ tests/btrfs/087.out | 2 ++ tests/btrfs/088 | 89 ++++++++++++++++++++++++++++++++++++++++++++++++ tests/btrfs/088.out | 2 ++ tests/btrfs/group | 2 ++ 7 files changed, 281 insertions(+) create mode 100644 common/dmerror create mode 100755 tests/btrfs/087 create mode 100644 tests/btrfs/087.out create mode 100755 tests/btrfs/088 create mode 100644 tests/btrfs/088.out -- 2.0.0.153.g79dcccc -- To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html