Whamcloud - gitweb
LU-3335 scrub: OI scrub on OST 69/6669/13
authorFan Yong <fan.yong@intel.com>
Wed, 19 Jun 2013 16:14:29 +0000 (00:14 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 26 Jul 2013 05:23:07 +0000 (05:23 +0000)
commit0bc85700a2e41f369173e92bbe06b27ed1145618
tree4cf6cafce4387cf5602486c586abd55a0011e587
parentf24d4c4a3146e2200a642fdb71aa0e11afd36874
LU-3335 scrub: OI scrub on OST

OI scrub should has the ability to handle kinds of OI, including
both the OI files on MDT and the /O directory on OST.

We trust the FID in LMA for both MDT objects and OST objects. So
if some /O sub-item does not match related LMA, then the /O will
be updated, instead of the LMA.

To guarantee that the OI scrub can run without MDT0 involved for
FLDB, the OST object needs to store some flag in its LMA to tell
OI scrub that it is for an OST object, no need to query the MDT0.

Test-Parameters: testlist=sanity-scrub
Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I2da3816b28a7c6d5ad0b7f8d5b43f98a9886ff0c
Reviewed-on: http://review.whamcloud.com/6669
Tested-by: Hudson
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
15 files changed:
lustre/include/lustre/lustre_idl.h
lustre/include/obd_support.h
lustre/mdd/mdd_compat.c
lustre/obdclass/md_attrs.c
lustre/osd-ldiskfs/osd_compat.c
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_oi.c
lustre/osd-ldiskfs/osd_oi.h
lustre/osd-ldiskfs/osd_scrub.c
lustre/osd-zfs/osd_object.c
lustre/ptlrpc/wiretest.c
lustre/tests/sanity-scrub.sh
lustre/utils/wirecheck.c
lustre/utils/wiretest.c