diff options
| author | Vikas Gorur <vikas@zresearch.com> | 2009-03-03 16:00:58 +0530 | 
|---|---|---|
| committer | Anand V. Avati <avati@amp.gluster.com> | 2009-03-07 02:08:41 +0530 | 
| commit | 0991858fca6dc93de685e9527fb9ff47d77f616f (patch) | |
| tree | adcdf627d40c1fe90a8535c7b0bc27d057901788 /libglusterfs/src/call-stub.h | |
| parent | d092dff9a6e23d5fdef64154b6f3d6211f7482a6 (diff) | |
added fgetxattr and fsetxattr FOPs
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 | 50 | 
1 files changed, 50 insertions, 0 deletions
diff --git a/libglusterfs/src/call-stub.h b/libglusterfs/src/call-stub.h index ee2ba98a047..d80ddd1733b 100644 --- a/libglusterfs/src/call-stub.h +++ b/libglusterfs/src/call-stub.h @@ -436,6 +436,30 @@ typedef struct {  			dict_t *dict;  		} getxattr_cbk; +		/* fsetxattr */ +		struct { +			fop_fsetxattr_t fn; +			fd_t *fd; +			dict_t *dict; +			int32_t flags; +		} fsetxattr; +		struct { +			fop_fsetxattr_cbk_t fn; +			int32_t op_ret, op_errno; +		} fsetxattr_cbk; + +		/* fgetxattr */ +		struct { +			fop_fgetxattr_t fn; +			fd_t *fd; +			const char *name; +		} fgetxattr; +		struct { +			fop_fgetxattr_cbk_t fn; +			int32_t op_ret, op_errno; +			dict_t *dict; +		} fgetxattr_cbk; +  		/* removexattr */  		struct {  			fop_removexattr_t fn; @@ -1010,6 +1034,32 @@ fop_getxattr_cbk_stub (call_frame_t *frame,  		       dict_t *value);  call_stub_t * +fop_fsetxattr_stub (call_frame_t *frame, +                    fop_fsetxattr_t fn, +                    fd_t *fd, +                    dict_t *dict, +                    int32_t flags); + +call_stub_t * +fop_fsetxattr_cbk_stub (call_frame_t *frame, +                        fop_fsetxattr_cbk_t fn, +                        int32_t op_ret, +                        int32_t op_errno); + +call_stub_t * +fop_fgetxattr_stub (call_frame_t *frame, +                    fop_fgetxattr_t fn, +                    fd_t *fd, +                    const char *name); + +call_stub_t * +fop_fgetxattr_cbk_stub (call_frame_t *frame, +                        fop_fgetxattr_cbk_t fn, +                        int32_t op_ret, +                        int32_t op_errno, +                        dict_t *value); + +call_stub_t *  fop_removexattr_stub (call_frame_t *frame,  		      fop_removexattr_t fn,  		      loc_t *loc,  | 
