Whamcloud - gitweb
LU-4788 lfsck: enable verification for remote object
[fs/lustre-release.git] / lustre / include / lustre_lfsck.h
index b23540e..635aa21 100644 (file)
@@ -116,22 +116,11 @@ struct lfsck_start_param {
        unsigned int             lsp_index_valid:1;
 };
 
-enum lfsck_events {
-       LE_LASTID_REBUILDING    = 1,
-       LE_LASTID_REBUILT       = 2,
-       LE_PHASE1_DONE          = 3,
-       LE_PHASE2_DONE          = 4,
-       LE_START                = 5,
-       LE_STOP                 = 6,
-       LE_QUERY                = 7,
-       LE_FID_ACCESSED         = 8,
-       LE_PEER_EXIT            = 9,
-       LE_CONDITIONAL_DESTROY  = 10,
-};
-
-enum lfsck_event_flags {
-       LEF_TO_OST              = 0x00000001,
-       LEF_FROM_OST            = 0x00000002,
+/* For LE_PAIRS_VERIFY returned status */
+enum lfsck_pv_status {
+       LPVS_INIT               = 0,
+       LPVS_INCONSISTENT       = 1,
+       LPVS_INCONSISTENT_TOFIX = 2,
 };
 
 typedef int (*lfsck_out_notify)(const struct lu_env *env, void *data,
@@ -159,19 +148,19 @@ int lfsck_in_notify(const struct lu_env *env, struct dt_device *key,
 int lfsck_query(const struct lu_env *env, struct dt_device *key,
                struct lfsck_request *lr);
 
-int lfsck_get_speed(struct dt_device *key, void *buf, int len);
+int lfsck_get_speed(struct seq_file *m, struct dt_device *key);
 int lfsck_set_speed(struct dt_device *key, int val);
-int lfsck_get_windows(struct dt_device *key, void *buf, int len);
+int lfsck_get_windows(struct seq_file *m, struct dt_device *key);
 int lfsck_set_windows(struct dt_device *key, int val);
 
-int lfsck_dump(struct dt_device *key, void *buf, int len, enum lfsck_type type);
+int lfsck_dump(struct seq_file *m, struct dt_device *key, enum lfsck_type type);
 
 static inline void lfsck_pack_rfa(struct lfsck_request *lr,
                                  const struct lu_fid *fid)
 {
        memset(lr, 0, sizeof(*lr));
        lr->lr_event = LE_FID_ACCESSED;
-       lr->lr_active = LT_LAYOUT;
+       lr->lr_active = LFSCK_TYPE_LAYOUT;
        lr->lr_fid = *fid;
 }