Whamcloud - gitweb
Lproc-snmp code drop
[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
17 #include <linux/lustre_idl.h>
18 struct obd_import {
19         struct ptlrpc_connection *imp_connection;
20         struct ptlrpc_client     *imp_client;
21         struct lustre_handle      imp_handle;
22         struct list_head          imp_chain;
23         struct obd_device        *imp_obd;
24         int                       imp_flags;
25         /* XXX need a UUID here, I think */
26 };
27
28 extern struct obd_import *class_conn2cliimp(struct lustre_handle *);
29 extern struct obd_import *class_conn2ldlmimp(struct lustre_handle *);
30
31 #endif /* __KERNEL__ */
32
33 #endif /* __IMPORT_H */