Whamcloud - gitweb
LU-1267 lfsck: framework (1) for MDT-OST consistency 46/7146/25
authorFan Yong <fan.yong@intel.com>
Thu, 9 Jan 2014 17:35:32 +0000 (01:35 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 17 Jan 2014 04:17:45 +0000 (04:17 +0000)
commit0347ad57ee875b730c3ec0da203857a5c86fc394
tree40522584ee5347b760b08a5e4dc59ff7366ed996
parent8931d9070415e808e09bb4befd7cd38ef2431149
LU-1267 lfsck: framework (1) for MDT-OST consistency

1) New LFSCK component - lfsck_layout, its data structure, tracing
   file, lFSCK APIs, internal shared functions, and so on.

2) Extend the existing LFSCK:
2.1) new flag - LF_INCOMPLETE, for the case of some target (MDT/OST)
     not join the LFSCK or crashed during the LFSCK.
2.2) New status - LS_PARTIAL, corresponding to above LF_INCOMPLETE,
     if some target (MDT/OST) does not join the LFSCK processing or
     crashed during the LFSCK, when it finished, its status will be
     set as LS_PARTIAL.

3) Control the LFSCK speed by each component itself during the
   second-phase scanning.

4) Avoid lfsck engines to access freed lfsck_instance.

5) Some code cleanup.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I6dc7bb881dc831f6c760be14aac2a066ad75ffec
Reviewed-on: http://review.whamcloud.com/7146
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre_lfsck.h
lustre/lfsck/Makefile.in
lustre/lfsck/lfsck_bookmark.c
lustre/lfsck/lfsck_engine.c
lustre/lfsck/lfsck_internal.h
lustre/lfsck/lfsck_layout.c [new file with mode: 0644]
lustre/lfsck/lfsck_lib.c
lustre/lfsck/lfsck_namespace.c