Whamcloud - gitweb
LU-12974 lfsck: dryrun mode shouldn't repair for layout
[fs/lustre-release.git] / lustre / lfsck / lfsck_internal.h
index e5b20e9..d491b2a 100644 (file)
@@ -752,6 +752,11 @@ struct lfsck_instance {
        struct lfsck_rec_lmv_save li_rec_lmv_save[LFSCK_REC_LMV_MAX_DEPTH];
 };
 
+static inline bool lfsck_is_dryrun(struct lfsck_instance *lfsck)
+{
+       return lfsck->li_bookmark_ram.lb_param & LPF_DRYRUN;
+}
+
 struct lfsck_async_interpret_args {
        struct lfsck_component          *laia_com;
        struct lfsck_tgt_descs          *laia_ltds;