Whamcloud - gitweb
LU-6012 scrub: NOT miss to auto detect inconsistent OI mapping 20/13020/2
authorFan Yong <fan.yong@intel.com>
Sat, 27 Sep 2014 23:10:34 +0000 (07:10 +0800)
committerAndreas Dilger <andreas.dilger@intel.com>
Thu, 11 Dec 2014 07:30:24 +0000 (07:30 +0000)
commit6b0fa766a4444cf655e965aba067a07143101966
tree9a602ea9a012e5e9360b6cd4046239a9429945f5
parent8b40f512cced1329da8913aea8c957d9d896127b
LU-6012 scrub: NOT miss to auto detect inconsistent OI mapping

When full scrub is triggered automatically, its flags should
be set as SF_INCONSISTENT.

For lookup case, we should check whether current OI mapping is
consistent or not, even if the current OI scrub flags is NOT
SF_INCONSISTENT.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I99ea077ae79fcdfedd7bb16c2a664714e0ea5ea3
Reviewed-on: http://review.whamcloud.com/13020
Tested-by: Jenkins
Tested-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_scrub.c
lustre/tests/sanity-scrub.sh