Whamcloud - gitweb
We get 64-bit xids over the wire, so we should store 64 bits on disk.
[fs/lustre-release.git] / lustre / include / linux / lustre_ha.h
index 3913e01..4f0fa0c 100644 (file)
@@ -1,32 +1,24 @@
+/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
+ * vim:expandtab:shiftwidth=8:tabstop=8:
+ */
+
 #ifndef _LUSTRE_HA_H
 #define _LUSTRE_HA_H
 
-#define MGR_STOPPING   1
-#define MGR_RUNNING    2
-#define MGR_STOPPED    4
-#define MGR_KILLED     8
-#define MGR_EVENT      16
-#define MGR_WORKING    32
-#define MGR_SIGNAL     64
-
 #define LUSTRE_HA_NAME "ptlrpc"
 
-#define CONNMGR_CONNECT 1
-
-extern struct connmgr_obd *ptlrpc_connmgr;
-
-struct connmgr_thread { 
-        struct connmgr_obd *mgr;
-        char *name;
+struct recovd_data {
+        struct list_head rd_managed_chain;
+        int (*rd_recover)(struct recovd_data *);
 };
 
+struct recovd_obd;
+struct ptlrpc_connection;
 
-struct connmgr_body { 
-        __u32 generation;
-};
-
-int connmgr_connect(struct connmgr_obd *mgr, struct ptlrpc_connection *cn);
-void connmgr_cli_fail(struct ptlrpc_client *cli);
-void connmgr_cli_manage(struct connmgr_obd *mgr, struct ptlrpc_client *cli);
+void recovd_conn_fail(struct ptlrpc_connection *conn);
+void recovd_conn_manage(struct recovd_obd *mgr, struct ptlrpc_connection *conn);
+void recovd_conn_fixed(struct ptlrpc_connection *conn);
+int recovd_setup(struct recovd_obd *mgr);
+int recovd_cleanup(struct recovd_obd *mgr);
 
 #endif