Whamcloud - gitweb
LU-7429 tests: inject lfsck failure properly 16/20916/3
authorFan Yong <fan.yong@intel.com>
Sun, 15 May 2016 15:20:41 +0000 (23:20 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 11 Jul 2016 23:58:55 +0000 (23:58 +0000)
commitb399a2d8cbe195eb93e6000d19e24e5ed8864b69
tree5f540980ff8ea70e4f80ef79013818de15616215
parent80a9ca6385fc8df64fa9f7fbd8fa14dfb40a609f
LU-7429 tests: inject lfsck failure properly

In sanity-lfsck test_23, we need to inject some failure stub to
simulate the case of dangling name entry. But the original mean
may misguide the LFSCK to regard it as bad name entry.

On the other hand, the test scripts injects some test delay that
may cause the LFSCK to run slowly, so need more time to wait the
LFSCK status changes.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I36c6c1bd8d07d2af6680e18b6c722e3bfa3a0062
Reviewed-on: http://review.whamcloud.com/20916
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
lustre/mdd/mdd_dir.c
lustre/tests/sanity-lfsck.sh