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