Whamcloud - gitweb
LU-684 tests: replace dev_read_only patch with dm-flakey 00/7200/40
authorHongchao Zhang <hongchao.zhang@intel.com>
Sat, 3 Mar 2018 06:36:32 +0000 (22:36 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 15 Mar 2018 13:54:01 +0000 (13:54 +0000)
commit54b9e3f789358bd9dfb94b77fe33a4faa1e28ab2
tree32464b348d84f2cf5764ab443f4b4268c75df206
parentc11c61a82d668b54a41127a759b2e99cb077ac14
LU-684 tests: replace dev_read_only patch with dm-flakey

The dev_read_only kernel patch is mainly used for testing,
in order to simulate a server crash for ldiskfs by discarding
all of the writes to the device.

Since Linux kernel 3.0, this testing functionality can be
simulated by using "dm-flakey" target for device-mapper,
which supports a "drop_writes" parameter that could be used
in place of our dev_read_only kernel patch.

Signed-off-by: Hongchao Zhang <hongchao.zhang@intel.com>
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Signed-off-by: Jian Yu <jian.yu@intel.com>
Change-Id: I51ff9a1a10fb5bacdc1afa2716b769b5eda41863
Reviewed-on: https://review.whamcloud.com/7200
Tested-by: Jenkins
Reviewed-by: Fan Yong <fan.yong@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
12 files changed:
lustre/tests/auster
lustre/tests/conf-sanity.sh
lustre/tests/lfsck-performance.sh
lustre/tests/lnet-selftest.sh
lustre/tests/mmp.sh
lustre/tests/recovery-small.sh
lustre/tests/sanity-lfsck.sh
lustre/tests/sanity-quota.sh
lustre/tests/sanity-scrub.sh
lustre/tests/sanity-sec.sh
lustre/tests/scrub-performance.sh
lustre/tests/test-framework.sh