Whamcloud - gitweb
LU-7429 tests: generate dangling name entry properly 12/21412/6
authorFan Yong <fan.yong@intel.com>
Fri, 3 Jun 2016 23:03:18 +0000 (07:03 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 27 Jul 2016 03:03:50 +0000 (03:03 +0000)
commit9bb5a2fd3e76b460fd5121d48bc492be27a2e4f5
tree25b359f479918449534ca4a7975748cc559cb613
parent7bdee09c30d07a50082d9a2c08182f7f3f6ea47a
LU-7429 tests: generate dangling name entry properly

When start LFSCK, before scanning the system, it needs to create
the objects ".lustre/lost+found/MDTxxxx" to hold orphans if they
do not exist. Such creation may re-use the backend object (inode
for ldiskfs backend) that was original referenced by the dangling
name entry. If such case happened, the dangling failure injection
will fail, then the LFSCK will not find dangling name entry.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I3c8be2e3f83e10a454bbc6175242d0a982211d87
Reviewed-on: http://review.whamcloud.com/21412
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity-lfsck.sh