-extern struct obd_export *class_conn2export(struct lustre_handle *conn);
-extern struct obd_device *class_conn2obd(struct lustre_handle *conn);
-
-struct obd_export {
- __u64 export_cookie;
- struct lustre_handle export_import; /* client handle */
- struct list_head export_chain;
- struct obd_device *export_obd;
- struct ptlrpc_connection *export_connection;
- void *export_data; /* device specific data */
- int export_desclen;
- char *export_desc;
-};
-
-struct obd_import {
- __u64 import_cookie;
- struct lustre_handle import_export; /* client handle */
- struct list_head import_chain;
- struct obd_device *import_obd;
- unsigned int import_id;
- void *import_data; /* device specific data */
-};
-
-static inline int obd_check_conn(struct lustre_handle *conn)