Whamcloud - gitweb
LU-1816 scrub: OI scrub skips new created objects for once
authorFan Yong <yong.fan@whamcloud.com>
Mon, 3 Sep 2012 08:49:22 +0000 (16:49 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 6 Sep 2012 18:15:26 +0000 (14:15 -0400)
commit89b0ae09379b9856c46acf7ae32052a09eaab59b
tree77261a02dcece00fb986eee2237521518217d559
parenta828eac632176d65e2f241586ed331905a1bce3e
LU-1816 scrub: OI scrub skips new created objects for once

For accelerating OI scrub, it will skip the objects which are new
created after the latest MDT mount and marked as I_LUSTRE_NOSCRUB.
But if the object with I_LUSTRE_NOSCRUB is used/cached in RAM for
very long time, then OI scrub has no chance to process it even if
there has been inconsistency happened until the MDT remount.

So as compromise, the OI scrub will skip the new created objects
for once only when the first accessing.

Signed-off-by: Fan Yong <yong.fan@whamcloud.com>
Change-Id: I560d7d851e3430326d24ec74154bb2a99f80b737
Reviewed-on: http://review.whamcloud.com/3848
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Mike Pershin <tappro@whamcloud.com>
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_scrub.c
lustre/osd-ldiskfs/osd_scrub.h
lustre/tests/sanity-scrub.sh