Whamcloud - gitweb
WARNING: we currently crash on unmount after the last phase of runtests.
[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 #include <linux/lustre_idl.h>
16 struct obd_import {
17         struct ptlrpc_connection *imp_connection;
18         struct ptlrpc_client     *imp_client;
19         struct lustre_handle      imp_handle;
20 };
21
22 extern struct obd_import *class_conn2cliimp(struct lustre_handle *);
23 extern struct obd_import *class_conn2ldlmimp(struct lustre_handle *);
24
25 #endif /* __KERNEL__ */
26
27 #endif /* __IMPORT_H */