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