diff options
| author | Vikas Gorur <vikas@zresearch.com> | 2009-02-23 02:33:11 -0800 | 
|---|---|---|
| committer | Anand V. Avati <avati@amp.gluster.com> | 2009-02-23 19:31:52 +0530 | 
| commit | a3ed4474de9db5bda606b374f3d8cb1cdbf8a9fb (patch) | |
| tree | 23da9bd50c184564c531a15a8c396af48499f07a /libglusterfs/src/call-stub.h | |
| parent | 80066c23da120621f26d83d631e204ab2943d181 (diff) | |
added lock_notify and lock_fnotify FOPs to everywhere necessary in libglusterfs/*
fixed indentation and resubmitting
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'libglusterfs/src/call-stub.h')
| -rw-r--r-- | libglusterfs/src/call-stub.h | 47 | 
1 files changed, 47 insertions, 0 deletions
diff --git a/libglusterfs/src/call-stub.h b/libglusterfs/src/call-stub.h index 12e94a15803..d08098b959a 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  | 
