Whamcloud - gitweb
LU-2914 lfsck: split LFSCK code from mdd to lfsck
authorFan Yong <yong.fan@whamcloud.com>
Thu, 9 May 2013 09:34:31 +0000 (17:34 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 13 Jun 2013 05:59:05 +0000 (01:59 -0400)
commit2f41b688058532248e69ff0194c27616f4dfb6d5
tree9ab235af72167b7becef04cdf0bc1940258227ca
parente3afa6f49cd12e746f579d38c081b88f3db855cc
LU-2914 lfsck: split LFSCK code from mdd to lfsck

The new LFSCK is used not only for namespace consistency verification,
but also for some other purposes, such as file layout consistency, DNE
consistency, and ect.

So it is more reasonable to move the new LFSCK code from mdd module to
another independent module -- lfsck, which can directly talk with lod,
local storage lib and ldlm. MDD (and OFD in next pahse) will register
as lfsck instance for related lfsck component(s), such as 'namespace'.
The lfsck processing will be independent from MDD, except the control:
start/stop/pause.

Test-Parameters: testlist=sanity-scrub,sanity-lfsck

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: Ia6cd619d8972f4a51effa1fe48099fced6875ab9
Reviewed-on: http://review.whamcloud.com/6321
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
29 files changed:
libcfs/include/libcfs/libcfs_debug.h
libcfs/libcfs/debug.c
lnet/utils/debug.c
lustre/Makefile.in
lustre/autoMakefile.am
lustre/autoconf/lustre-core.m4
lustre/include/Makefile.am
lustre/include/dt_object.h
lustre/include/lu_object.h
lustre/include/lustre_lfsck.h [new file with mode: 0644]
lustre/include/lustre_linkea.h
lustre/lfsck/Makefile.in [new file with mode: 0644]
lustre/lfsck/autoMakefile.am [new file with mode: 0644]
lustre/lfsck/lfsck_bookmark.c [new file with mode: 0644]
lustre/lfsck/lfsck_engine.c [new file with mode: 0644]
lustre/lfsck/lfsck_internal.h [new file with mode: 0644]
lustre/lfsck/lfsck_lib.c [new file with mode: 0644]
lustre/lfsck/lfsck_namespace.c [new file with mode: 0644]
lustre/mdd/Makefile.in
lustre/mdd/autoMakefile.am
lustre/mdd/mdd_device.c
lustre/mdd/mdd_dir.c
lustre/mdd/mdd_internal.h
lustre/mdd/mdd_lfsck.c [deleted file]
lustre/mdd/mdd_lfsck.h [deleted file]
lustre/mdd/mdd_lproc.c
lustre/mdt/mdt_handler.c
lustre/tests/sanity-lfsck.sh
lustre/tests/test-framework.sh