]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs/003: enable test with virtio_blk devices in VM
authorNikolay Borisov <nborisov@suse.com>
Mon, 1 Apr 2019 11:08:37 +0000 (14:08 +0300)
committerEryu Guan <guaneryu@gmail.com>
Sat, 6 Apr 2019 11:23:47 +0000 (19:23 +0800)
commit0cd952cb4259d8eb053cbfa276d99f008c4ff0ce
tree15eb2c83b15f8507af617a1b2a54de4344c079ff
parented8463509b01540787fbd6ada95532a5577e6d15
btrfs/003: enable test with virtio_blk devices in VM

For a long time this test has been failing on all kinds of VM
configuration, which are using virtio_blk devices. This is due to
the fact that scsi devices are deletable and virtio_blk are not.
However, this only prevents device replace case to run and has no
negative effect on the other useful test cases.

Re-enable btrfs/003 to run by making
_require_deletable_scratch_dev_pool private to the test case and
modifying it to return success (0) or failure (1) if devices are not
deletable. Further modify the replace test case to check the return
value of this function and skip it if devices are not deletable.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/rc
tests/btrfs/003