Whamcloud - gitweb
Only store replayable (MDC, with transno) requests on the sending_head after
[fs/lustre-release.git] / lustre / include / linux / lustre_import.h
1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  *
4  * Copyright (C) 2001  Cluster File Systems, Inc.
5  *
6  * This code is issued under the GNU General Public License.
7  * See the file COPYING in this distribution
8  */
9
10 #ifndef __IMPORT_H
11 #define __IMPORT_H
12
13 #ifdef __KERNEL__
14
15 #define IMP_INVALID       1
16 #define IMP_REPLAYABLE    2
17
18 #include <linux/lustre_idl.h>
19 struct obd_import {
20         struct ptlrpc_connection *imp_connection;
21         struct ptlrpc_client     *imp_client;
22         struct lustre_handle      imp_handle;
23         struct list_head          imp_chain;
24         struct obd_device        *imp_obd;
25         int                       imp_flags;
26         /* XXX need a UUID here, I think, unless we just use the OBD's UUID */
27 };
28
29 extern struct obd_import *class_conn2cliimp(struct lustre_handle *);
30 extern struct obd_import *class_conn2ldlmimp(struct lustre_handle *);
31
32 #endif /* __KERNEL__ */
33
34 #endif /* __IMPORT_H */