Whamcloud - gitweb
b=13872
[fs/lustre-release.git] / lustre / include / obd_echo.h
1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  */
4
5 #ifndef _OBD_ECHO_H
6 #define _OBD_ECHO_H
7
8 /* The persistent object (i.e. actually stores stuff!) */
9 #define ECHO_PERSISTENT_OBJID    1ULL
10 #define ECHO_PERSISTENT_SIZE     ((__u64)(1<<20))
11
12 /* block size to use for data verification */
13 #define OBD_ECHO_BLOCK_SIZE     (4<<10)
14
15 struct ec_object {
16         struct list_head       eco_obj_chain;
17         struct obd_device     *eco_device;
18         int                    eco_refcount;
19         int                    eco_deleted;
20         obd_id                 eco_id;
21         struct lov_stripe_md  *eco_lsm;
22 };
23
24 struct ec_lock {
25         struct list_head       ecl_exp_chain;
26         struct ec_object      *ecl_object;
27         __u64                  ecl_cookie;
28         struct lustre_handle   ecl_lock_handle;
29         ldlm_policy_data_t     ecl_policy;
30         __u32                  ecl_mode;
31 };
32
33 #endif