1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
4 * Copyright (C) 2001 Cluster File Systems, Inc.
6 * This code is issued under the GNU General Public License.
7 * See the file COPYING in this distribution
15 #include <linux/lustre_idl.h>
16 #include <linux/lustre_dlm.h>
17 #include <linux/lustre_mds.h>
18 #include <linux/obd_filter.h>
20 struct lov_export_data {
22 struct list_head led_open_head;
25 struct ost_export_data {
26 struct obd_uuid oed_uuid; /* client UUID */
29 struct ec_export_data { /* echo client */
30 struct list_head eced_open_head;
31 struct list_head eced_locks;
36 struct obd_uuid exp_client_uuid;
37 struct list_head exp_obd_chain;
38 struct list_head exp_conn_chain;
39 struct obd_device *exp_obd;
40 struct ptlrpc_connection *exp_connection;
41 struct ldlm_export_data exp_ldlm_data;
43 struct mds_export_data eu_mds_data;
44 struct filter_export_data eu_filter_data;
45 struct lov_export_data eu_lov_data;
46 struct ost_export_data eu_ost_data;
47 struct ec_export_data eu_ec_data;
51 #define exp_mds_data u.eu_mds_data
52 #define exp_lov_data u.eu_lov_data
53 #define exp_filter_data u.eu_filter_data
54 #define exp_ost_data u.eu_ost_data
55 #define exp_ec_data u.eu_ec_data
57 extern struct obd_export *class_conn2export(struct lustre_handle *conn);
58 extern struct obd_device *class_conn2obd(struct lustre_handle *conn);
59 #endif /* __KERNEL__ */
61 #endif /* __EXPORT_H */