Whamcloud - gitweb
Merge b_md into HEAD
[fs/lustre-release.git] / lustre / include / linux / obd_echo.h
1 #ifndef _OBD_ECHO_H
2 #define _OBD_ECHO_H
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 #define OBD_ECHO_DEVICENAME "obdecho"
11 #define OBD_ECHO_CLIENT_DEVICENAME "echo_client"
12
13 struct ec_object
14 {
15         struct list_head       eco_obj_chain;
16         struct obd_device     *eco_device;
17         int                    eco_refcount;
18         int                    eco_deleted;
19         obd_id                 eco_id;
20         struct lov_stripe_md  *eco_lsm;
21 };
22
23 struct ec_open_object
24 {
25         struct list_head       ecoo_exp_chain;
26         struct ec_object      *ecoo_object;
27         struct obdo            ecoo_oa;
28         __u64                  ecoo_cookie;
29 };
30
31 struct ec_lock
32 {
33         struct list_head       ecl_exp_chain;
34         struct lustre_handle   ecl_handle;
35         struct ldlm_extent     ecl_extent;
36         __u32                  ecl_mode;
37         struct ec_object      *ecl_object;
38         __u64                  ecl_cookie;
39 };
40
41 #endif