Whamcloud - gitweb
LU-4927 scrub: rebuild stale OST OI mapping 06/10006/3
authorFan Yong <fan.yong@intel.com>
Tue, 25 Mar 2014 14:01:54 +0000 (22:01 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 23 Apr 2014 17:00:19 +0000 (17:00 +0000)
commit76031fc50abd3a21395e6f4c09e4d9ab6c60354b
treedc7c19d71e45a8998772529e1e4c814e25826cbe
parentbc3ca96bdeae44d400724b3db886468ba5245f9b
LU-4927 scrub: rebuild stale OST OI mapping

If the osd_oi_lookup() which is called by osd_scrub_check_update()
returns -ESTALE for an OST FID, then it means that the target FID
has invalid OI mapping, and should be rebuilt.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I4087da9d3c8e18aff14e314af49637134ee8d4ff
Reviewed-on: http://review.whamcloud.com/10006
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
lustre/osd-ldiskfs/osd_scrub.c