Whamcloud - gitweb
WARNING: we currently crash on unmount after the last phase of runtests.
[fs/lustre-release.git] / lustre / include / linux / lustre_export.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 __EXPORT_H
11 #define __EXPORT_H
12
13 #ifdef __KERNEL__
14
15 #include <linux/lustre_idl.h>
16 #include <linux/lustre_dlm.h>
17
18 struct obd_export {
19         __u64                     exp_cookie;
20         struct lustre_handle      exp_impconnh;
21         struct list_head          exp_obd_chain;
22         struct list_head          exp_conn_chain;
23         struct obd_device        *exp_obd;
24         struct ptlrpc_connection *exp_connection;
25         struct mds_export_data    exp_mds_data;
26         struct ldlm_export_data   exp_ldlm_data;
27 #if NOTYET && 0
28         struct ost_export_data    exp_ost_data;
29 #endif
30         void                     *exp_data; /* device specific data */
31         int                       exp_desclen;
32         char                     *exp_desc;
33         uuid_t                    exp_uuid;
34 };
35
36 extern struct obd_export *class_conn2export(struct lustre_handle *conn);
37 extern struct obd_device *class_conn2obd(struct lustre_handle *conn);
38 #endif /* __KERNEL__ */
39
40 #endif /* __EXPORT_H */