Whamcloud - gitweb
LU-8930 lfsck: sync failure with others no check LF_INCOMPLETE 00/24900/2
authorFan Yong <fan.yong@intel.com>
Wed, 28 Sep 2016 02:32:43 +0000 (10:32 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 26 Mar 2017 06:50:03 +0000 (06:50 +0000)
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 <fan.yong@intel.com>
Change-Id: I8466d8560b5d5070873f10746189fd82bf6f0172
Reviewed-on: https://review.whamcloud.com/24900
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/lfsck/lfsck_layout.c

index 517b3f5..70c0214 100644 (file)
@@ -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,