Whamcloud - gitweb
d885579fc9c7d55c222021d2044da2a918420420
[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 /* The persistent object (i.e. actually stores stuff!) */
17 #define ECHO_PERSISTENT_OBJID    1ULL
18 #define ECHO_PERSISTENT_SIZE     ((__u64)(1<<20))
19
20 /* block size to use for data verification */
21 #define OBD_ECHO_BLOCK_SIZE     (4<<10)
22
23 struct ec_object {
24         struct list_head       eco_obj_chain;
25         struct obd_device     *eco_device;
26         int                    eco_refcount;
27         int                    eco_deleted;
28         obd_id                 eco_id;
29         struct lov_stripe_md  *eco_lsm;
30 };
31
32 struct ec_lock {
33         struct list_head       ecl_exp_chain;
34         struct ec_object      *ecl_object;
35         __u64                  ecl_cookie;
36         struct lustre_handle   ecl_lock_handle;
37         ldlm_policy_data_t     ecl_policy;
38         __u32                  ecl_mode;
39 };
40
41 #endif