Whamcloud - gitweb
68c0d6e6c3275a78130bd4f8b9a2b1b29b8eb487
[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_lock {
26         struct list_head       ecl_exp_chain;
27         struct ec_object      *ecl_object;
28         __u64                  ecl_cookie;
29         struct lustre_handle   ecl_lock_handle;
30         struct ldlm_extent     ecl_extent;
31         __u32                  ecl_mode;
32 };
33
34 #endif