Whamcloud - gitweb
LU-2868 lfsck: finish otable iteration if no more objects
authorFan Yong <yong.fan@whamcloud.com>
Fri, 8 Feb 2013 05:46:30 +0000 (13:46 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 20 Mar 2013 21:01:13 +0000 (17:01 -0400)
commitc3b6fe769f7a32ba1c0f42b8e9604abecaa43da4
tree8db44bd8c8ef8cc8c3e635c224ad972acc885189
parent7e915f5d7177b22bd3cc800137fb505781a2c037
LU-2868 lfsck: finish otable iteration if no more objects

If there are no objects to be scanned just at the LFSCK beginning,
then the LFSCK should mark the otable-based iteration as finished
to avoid to access non-initialized data via dt_it_ops::rec().

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I67e880ccfa13e867c4ca7f1858d67909ba0415b3
Reviewed-on: http://review.whamcloud.com/5622
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Hudson
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/mdd/mdd_lfsck.c
lustre/osd-ldiskfs/osd_scrub.c