Whamcloud - gitweb
LU-957 scrub: trigger OI scrub if found bad OI entry
authorFan Yong <yong.fan@whamcloud.com>
Thu, 14 Jun 2012 07:41:22 +0000 (15:41 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 22 Jun 2012 16:25:50 +0000 (12:25 -0400)
commit0081d9de639979c0d0e341ad6ded442b9043a379
tree7527148bd36aa36580fdea91e32195233a1f4ec6
parentc89af048391c23366e0ea31cb6b9e69ad086c0f5
LU-957 scrub: trigger OI scrub if found bad OI entry

If some RPC involves OI lookup and finds inconsistent OI mapping,
it should trigger OI scrub to check and repair the inconsistency.

Known issues:
When the fid is returned to client, the OI mapping corresponding
to such fid may be not updated, or not committed to disk yet. If
server crashed before OI scrub completed, then recovery with the
fid corresponding to inconsistent OI mapping may fail or blocked.

Signed-off-by: Fan Yong <yong.fan@whamcloud.com>
Change-Id: I9709386aa6d42954b619f6b1342adae59a2ec5a9
Reviewed-on: http://review.whamcloud.com/2554
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/include/lu_object.h
lustre/mdd/mdd_internal.h
lustre/mdd/mdd_orphans.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_open.c
lustre/mdt/mdt_reint.c
lustre/obdecho/echo_client.c
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_scrub.c