Whamcloud - gitweb
b=11691
[fs/lustre-release.git] / lustre / include / lustre_ha.h
1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  */
4
5 #ifndef _LUSTRE_HA_H
6 #define _LUSTRE_HA_H
7
8 struct obd_import;
9 struct obd_export;
10 struct obd_device;
11 struct ptlrpc_request;
12
13
14 int ptlrpc_replay(struct obd_import *imp);
15 int ptlrpc_resend(struct obd_import *imp);
16 void ptlrpc_free_committed(struct obd_import *imp);
17 void ptlrpc_wake_delayed(struct obd_import *imp);
18 int ptlrpc_recover_import(struct obd_import *imp, char *new_uuid);
19 int ptlrpc_set_import_active(struct obd_import *imp, int active);
20 void ptlrpc_activate_import(struct obd_import *imp);
21 void ptlrpc_deactivate_import(struct obd_import *imp);
22 void ptlrpc_invalidate_import(struct obd_import *imp);
23 void ptlrpc_fail_import(struct obd_import *imp, __u32 conn_cnt);
24
25 #endif