From 8276b394d14d405bc68e86a21111ca45175a1749 Mon Sep 17 00:00:00 2001 From: Fan Yong Date: Wed, 28 Sep 2016 10:32:43 +0800 Subject: [PATCH] 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 --- lustre/lfsck/lfsck_layout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 1.8.3.1