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:07 +0000 (14:15 -0400)
commit80ad9c5cb2419899ed4bab8a5d6eb7fa58729073
tree2135f6be03265dd39dd12f396e0b22985cc29890
parentbd9470f85e6a30c4f9d439b579a037419be7785e
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