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/call-stub.h | 47 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) (limited to 'libglusterfs/src/call-stub.h') diff --git a/libglusterfs/src/call-stub.h b/libglusterfs/src/call-stub.h index 12e94a158..d08098b95 100644 --- a/libglusterfs/src/call-stub.h +++ b/libglusterfs/src/call-stub.h @@ -567,6 +567,29 @@ typedef struct { int32_t op_errno; dict_t *xattr; } fxattrop_cbk; + + struct { + fop_lock_notify_t fn; + loc_t loc; + int32_t timeout; + } lock_notify; + struct { + fop_lock_notify_cbk_t fn; + int32_t op_ret; + int32_t op_errno; + } lock_notify_cbk; + + struct { + fop_lock_fnotify_t fn; + fd_t *fd; + int32_t timeout; + } lock_fnotify; + struct { + fop_lock_fnotify_cbk_t fn; + int32_t op_ret; + int32_t op_errno; + } lock_fnotify_cbk; + } args; } call_stub_t; @@ -1099,6 +1122,30 @@ fop_fxattrop_stub_cbk_stub (call_frame_t *frame, int32_t op_ret, int32_t op_errno); +call_stub_t * +fop_lock_notify_stub_cbk_stub (call_frame_t *frame, + fop_lock_notify_cbk_t fn, + int32_t op_ret, + int32_t op_errno); + +call_stub_t * +fop_lock_notify_stub (call_frame_t *frame, + fop_lock_notify_t fn, + loc_t *loc, + int32_t timeout); + +call_stub_t * +fop_lock_fnotify_stub_cbk_stub (call_frame_t *frame, + fop_lock_fnotify_cbk_t fn, + int32_t op_ret, + int32_t op_errno); + +call_stub_t * +fop_lock_fnotify_stub (call_frame_t *frame, + fop_lock_fnotify_t fn, + fd_t *fd, + int32_t timeout); + void call_resume (call_stub_t *stub); void call_stub_destroy (call_stub_t *stub); #endif -- cgit