Whamcloud - gitweb
LU-6635 lfsck: block replacing the OST-object for test 46/18146/4
authorFan Yong <fan.yong@intel.com>
Fri, 17 Jun 2016 03:20:39 +0000 (11:20 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 20 Oct 2016 10:36:03 +0000 (10:36 +0000)
commit7a814e94e065551ab79e2ba75df9626e4940efc5
treed8f8bbeda94141860a1c3decb25c851303cc1d5a
parent51f1b46dab6c2cc16f71d3f3be483f530b5e4001
LU-6635 lfsck: block replacing the OST-object for test

For sanity-lfsck test_18e, sometimes, before the client wirte
happened, the layout LFSCK has already gone into the phase2
and replaced the new created OST-object with the old orphan
OST-object, then cause the subsequent check failure.

To resolve such trouble, we will hold the layout LFSCK when
replacing the new created OST-object until the client write
happened.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: Ia5be2cd2ea920fa02bb281ca5c59d8d252f3fd7b
Reviewed-on: http://review.whamcloud.com/18146
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/lfsck/lfsck_layout.c