Whamcloud - gitweb
LU-4788 lfsck: verify .lustre/lost+found at the LFSCK start 87/10987/18
authorFan Yong <fan.yong@intel.com>
Sat, 26 Jul 2014 23:49:29 +0000 (07:49 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 15 Sep 2014 18:16:59 +0000 (18:16 +0000)
commitf1918fee9a8459a522f37530da5c5a0aa4bab551
tree2b146b672a8c198087e6bd7af4a20262fdc71978
parentae85eecd5fd7921e248fbe84bb2bd9ad22f07639
LU-4788 lfsck: verify .lustre/lost+found at the LFSCK start

/ROOT/.lustre/lost+found/ is a special directory to hold the
objects that the LFSCK does not exactly know how to handle,
such as orphans. So before the LFSCK scanning the system,
the consistency of such directory needs to be verified firstly
to allow the users it during the LFSCK.

fid_seq_is_dot_lustre() is a duplication of fid_seq_is_dot(),
drop it and cleanup the code.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I95cac84bed1ae16c8c86e495db0120d964395b5e
Reviewed-on: http://review.whamcloud.com/10987
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre_fid.h
lustre/lfsck/lfsck_engine.c
lustre/lfsck/lfsck_internal.h
lustre/lfsck/lfsck_lib.c
lustre/lfsck/lfsck_namespace.c
lustre/mdt/mdt_reint.c
lustre/tests/sanity-lfsck.sh