- bool pause);
-
-int lfsck_get_speed(struct dt_device *key, void *buf, int len);
-int lfsck_set_speed(struct dt_device *key, int val);
-
-int lfsck_dump(struct dt_device *key, void *buf, int len, enum lfsck_type type);
-
+ struct lfsck_stop *stop);
+int lfsck_in_notify_local(const struct lu_env *env, struct dt_device *key,
+ struct lfsck_req_local *lrl, struct thandle *th);
+int lfsck_in_notify(const struct lu_env *env, struct dt_device *key,
+ struct lfsck_request *lr);
+int lfsck_query(const struct lu_env *env, struct dt_device *key,
+ struct lfsck_request *req, struct lfsck_reply *rep,
+ struct lfsck_query *que);
+
+int lfsck_get_speed(char *buf, struct dt_device *key);
+int lfsck_set_speed(struct dt_device *key, __u32 val);
+int lfsck_get_windows(char *buf, struct dt_device *key);
+int lfsck_set_windows(struct dt_device *key, unsigned int val);
+
+int lfsck_dump(struct seq_file *m, struct dt_device *key, enum lfsck_type type);
+
+static inline void lfsck_pack_rfa(struct lfsck_req_local *lrl,
+ const struct lu_fid *fid,
+ enum lfsck_events_local event, __u16 com)
+{
+ memset(lrl, 0, sizeof(*lrl));
+ lrl->lrl_fid = *fid;
+ lrl->lrl_event = event;
+ lrl->lrl_active = com;
+}
+
+static inline bool lovea_slot_is_dummy(const struct lov_ost_data_v1 *obj)
+{
+ /* zero area does not care about the bytes-order. */
+ if (obj->l_ost_oi.oi.oi_id == 0 && obj->l_ost_oi.oi.oi_seq == 0 &&
+ obj->l_ost_idx == 0 && obj->l_ost_gen == 0)
+ return true;
+
+ return false;
+}