From a3ed4474de9db5bda606b374f3d8cb1cdbf8a9fb Mon Sep 17 00:00:00 2001 From: Vikas Gorur Date: Mon, 23 Feb 2009 02:33:11 -0800 Subject: added lock_notify and lock_fnotify FOPs to everywhere necessary in libglusterfs/* fixed indentation and resubmitting Signed-off-by: Anand V. Avati --- libglusterfs/src/xlator.h | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'libglusterfs/src/xlator.h') diff --git a/libglusterfs/src/xlator.h b/libglusterfs/src/xlator.h index a24184ab8..b8722b2f6 100644 --- a/libglusterfs/src/xlator.h +++ b/libglusterfs/src/xlator.h @@ -416,6 +416,18 @@ typedef int32_t (*fop_fxattrop_cbk_t) (call_frame_t *frame, int32_t op_errno, dict_t *xattr); +typedef int32_t (*fop_lock_notify_cbk_t) (call_frame_t *frame, + void *cookie, + xlator_t *this, + int32_t op_ret, + int32_t op_errno); + +typedef int32_t (*fop_lock_fnotify_cbk_t) (call_frame_t *frame, + void *cookie, + xlator_t *this, + int32_t op_ret, + int32_t op_errno); + typedef int32_t (*fop_lookup_t) (call_frame_t *frame, xlator_t *this, loc_t *loc, @@ -635,6 +647,14 @@ typedef int32_t (*fop_fxattrop_t) (call_frame_t *frame, gf_xattrop_flags_t optype, dict_t *xattr); +typedef int32_t (*fop_lock_notify_t) (call_frame_t *frame, + xlator_t *this, loc_t *loc, + int32_t timeout); + +typedef int32_t (*fop_lock_fnotify_t) (call_frame_t *frame, + xlator_t *this, fd_t *fd, + int32_t timeout); + struct xlator_fops { fop_lookup_t lookup; fop_stat_t stat; @@ -677,7 +697,9 @@ struct xlator_fops { fop_getdents_t getdents; fop_checksum_t checksum; fop_xattrop_t xattrop; - fop_fxattrop_t fxattrop; + fop_fxattrop_t fxattrop; + fop_lock_notify_t lock_notify; + fop_lock_fnotify_t lock_fnotify; /* these entries are used for a typechecking hack in STACK_WIND _only_ */ fop_lookup_cbk_t lookup_cbk; @@ -722,6 +744,8 @@ struct xlator_fops { fop_checksum_cbk_t checksum_cbk; fop_xattrop_cbk_t xattrop_cbk; fop_fxattrop_cbk_t fxattrop_cbk; + fop_lock_notify_cbk_t lock_notify_cbk; + fop_lock_fnotify_cbk_t lock_fnotify_cbk; }; typedef int32_t (*cbk_forget_t) (xlator_t *this, -- cgit