X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Finclude%2Flinux%2Fobd_echo.h;h=d885579fc9c7d55c222021d2044da2a918420420;hb=023376307ceb250d1620e6ec77344dab7ed4edd2;hp=273779a3e3cd6618848efd261b45ddee73c59e85;hpb=93acd158c57c4c5d0fc751d46741231490c04707;p=fs%2Flustre-release.git diff --git a/lustre/include/linux/obd_echo.h b/lustre/include/linux/obd_echo.h index 273779a..d885579 100644 --- a/lustre/include/linux/obd_echo.h +++ b/lustre/include/linux/obd_echo.h @@ -1,41 +1,41 @@ -#ifndef _OBD_ECHO_H -#define _OBD_ECHO_H -/* +/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*- + * vim:expandtab:shiftwidth=8:tabstop=8: + * * Copyright (C) 2001 Cluster File Systems, Inc. * * This code is issued under the GNU General Public License. * See the file COPYING in this distribution */ +#ifndef _OBD_ECHO_H +#define _OBD_ECHO_H + #define OBD_ECHO_DEVICENAME "obdecho" #define OBD_ECHO_CLIENT_DEVICENAME "echo_client" -struct ec_object -{ - struct list_head eco_obj_chain; - struct obd_device *eco_device; - int eco_refcount; - int eco_deleted; - obd_id eco_id; - struct lov_stripe_md *eco_lsm; -}; +/* The persistent object (i.e. actually stores stuff!) */ +#define ECHO_PERSISTENT_OBJID 1ULL +#define ECHO_PERSISTENT_SIZE ((__u64)(1<<20)) + +/* block size to use for data verification */ +#define OBD_ECHO_BLOCK_SIZE (4<<10) -struct ec_open_object -{ - struct list_head ecoo_exp_chain; - struct ec_object *ecoo_object; - struct obdo ecoo_oa; - __u64 ecoo_cookie; +struct ec_object { + struct list_head eco_obj_chain; + struct obd_device *eco_device; + int eco_refcount; + int eco_deleted; + obd_id eco_id; + struct lov_stripe_md *eco_lsm; }; -struct ec_lock -{ - struct list_head ecl_exp_chain; - struct lustre_handle ecl_handle; - struct ldlm_extent ecl_extent; - __u32 ecl_mode; - struct ec_object *ecl_object; - __u64 ecl_cookie; +struct ec_lock { + struct list_head ecl_exp_chain; + struct ec_object *ecl_object; + __u64 ecl_cookie; + struct lustre_handle ecl_lock_handle; + ldlm_policy_data_t ecl_policy; + __u32 ecl_mode; }; #endif