From: Fan Yong Date: Wed, 28 Sep 2016 02:32:43 +0000 (+0800) Subject: LU-8930 lfsck: sync failure with others no check LF_INCOMPLETE X-Git-Tag: 2.9.55~20 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F00%2F24900%2F2;p=fs%2Flustre-release.git LU-8930 lfsck: sync failure with others no check LF_INCOMPLETE During the first stage scanning, if the MDT has ever failed to verfiy some OST-objects (related OSTs inaccessable temporarily because of network trouble or OSTs restart), it needs to sync failures with other MDTs at the end of the first stage scanning to avoid improper repairing in the second stage scanning. Such sync failure should be done even if the "LF_INCOMPLETE" is set locally, otherwise, other MDTs may have no chance to know that. Signed-off-by: Fan Yong Change-Id: I8466d8560b5d5070873f10746189fd82bf6f0172 Reviewed-on: https://review.whamcloud.com/24900 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Lai Siyao Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- diff --git a/lustre/lfsck/lfsck_layout.c b/lustre/lfsck/lfsck_layout.c index 517b3f5..70c0214 100644 --- a/lustre/lfsck/lfsck_layout.c +++ b/lustre/lfsck/lfsck_layout.c @@ -264,7 +264,7 @@ static void lfsck_layout_assistant_sync_failures(const struct lu_env *env, int rc = 0; ENTRY; - if (!lad->lad_incomplete || lo->ll_flags & LF_INCOMPLETE) + if (!lad->lad_incomplete) RETURN_EXIT; /* If the MDT has ever failed to verfiy some OST-objects,