Whamcloud - gitweb
LU-3118 lfsck: resume LFSCK from the last checkpoint
authorFan Yong <yong.fan@whamcloud.com>
Mon, 22 Apr 2013 01:58:42 +0000 (09:58 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 25 Apr 2013 15:37:50 +0000 (11:37 -0400)
commitf81e1d87e2b8e3360c42d5c6477926367b906fe2
treee42fe956a1ff134e46d72b5e021d451a75652eca
parentf1a3b551938dad4e42555c5fbbf15ecca033666a
LU-3118 lfsck: resume LFSCK from the last checkpoint

It is a misc patch to enable the support to resume LFSCK from the last
checkpoint: no object will be skipped, not repeatly scan the object(s)
in front of checkpoint.

Other fixes:
1) Simplify LFSCK checkpoint logic.
2) Add linkEA for .lustre itself, then LFSCK will not be misguided.
3) Set LFSCK status as "failed" if hit error at prepare phase.
4) osd_otable_it_store() should return the cursor position, instead
of the pre-load position.
5) Other code cleanup.

Test-Parameters: testlist=sanity-scrub,sanity-lfsck
Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I3f6e988da323239ff2655ad4b13eae711e892ebe
Reviewed-on: http://review.whamcloud.com/6078
Tested-by: Hudson
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/mdd/mdd_device.c
lustre/mdd/mdd_dir.c
lustre/mdd/mdd_lfsck.c
lustre/mdd/mdd_lfsck.h
lustre/osd-ldiskfs/osd_scrub.c
lustre/tests/sanity-lfsck.sh