Whamcloud - gitweb
LU-19098 hsm: don't print progname twice with lhsmtool
[fs/lustre-release.git] / lustre / include / lustre_ha.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2
3 /*
4  * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
5  * Use is subject to license terms.
6  *
7  * Copyright (c) 2011, 2015, Intel Corporation.
8  */
9
10 /*
11  * This file is part of Lustre, http://www.lustre.org/
12  */
13
14 #ifndef _LUSTRE_HA_H
15 #define _LUSTRE_HA_H
16
17 /** \defgroup ha ha
18  *
19  * @{
20  */
21
22 struct obd_import;
23 struct obd_export;
24 struct obd_device;
25 struct ptlrpc_request;
26
27
28 int ptlrpc_replay(struct obd_import *imp);
29 int ptlrpc_resend(struct obd_import *imp);
30 void ptlrpc_free_committed(struct obd_import *imp);
31 void ptlrpc_wake_delayed(struct obd_import *imp);
32 int ptlrpc_recover_import(struct obd_import *imp, char *new_uuid, int async);
33 int ptlrpc_set_import_active(struct obd_import *imp, int active);
34 void ptlrpc_activate_import(struct obd_import *imp, bool set_state_full);
35 void ptlrpc_deactivate_import(struct obd_import *imp);
36 void ptlrpc_invalidate_import(struct obd_import *imp);
37 void ptlrpc_fail_import(struct obd_import *imp, __u32 conn_cnt);
38 void ptlrpc_pinger_force(struct obd_import *imp);
39 /** @} ha */
40
41 #endif