From 198c41b27068e5c58044c0218f0c13aea7f1d19a Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 13 Oct 2008 15:04:19 +0000 Subject: [PATCH] b=12182 i=adilger i=green i=nikita - oss read-only cache feature --- lustre/include/obd.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lustre/include/obd.h b/lustre/include/obd.h index e16fb04..3e2d717 100644 --- a/lustre/include/obd.h +++ b/lustre/include/obd.h @@ -332,6 +332,8 @@ struct filter_obd { obd_size fo_tot_pending; obd_size fo_readcache_max_filesize; + int fo_read_cache; + int fo_writethrough_cache; struct obd_import *fo_mdc_imp; struct obd_uuid fo_mdc_uuid; @@ -1147,11 +1149,13 @@ struct obd_ops { obd_id *startid, obd_gr group, void *data); int (*o_preprw)(int cmd, struct obd_export *exp, struct obdo *oa, int objcount, struct obd_ioobj *obj, - int niocount, struct niobuf_remote *remote, - struct niobuf_local *local, struct obd_trans_info *oti); + struct niobuf_remote *remote, int *nr_pages, + struct niobuf_local *local, + struct obd_trans_info *oti); int (*o_commitrw)(int cmd, struct obd_export *exp, struct obdo *oa, int objcount, struct obd_ioobj *obj, - int niocount, struct niobuf_local *local, + struct niobuf_remote *remote, int pages, + struct niobuf_local *local, struct obd_trans_info *oti, int rc); int (*o_enqueue)(struct obd_export *, struct obd_info *oinfo, struct ldlm_enqueue_info *einfo, -- 1.8.3.1