diff options
| author | Shehjar Tikoo <shehjart@gluster.com> | 2009-10-02 03:07:53 +0000 | 
|---|---|---|
| committer | Anand V. Avati <avati@dev.gluster.com> | 2009-10-06 06:34:46 -0700 | 
| commit | 55f55db6500835e95b324a2f28144c6a3dc55c62 (patch) | |
| tree | 027a754f40a6004d92ff0a72c18fd298cc063d88 /libglusterfs/src/xlator.h | |
| parent | 81cc40fee8b9cebcf5fc544c5d0c734fa7dfbb90 (diff) | |
core: Separate readdirp and readdir fops
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 292 (Separate readdirp functionality from readdir fop)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=292
Diffstat (limited to 'libglusterfs/src/xlator.h')
| -rw-r--r-- | libglusterfs/src/xlator.h | 15 | 
1 files changed, 15 insertions, 0 deletions
diff --git a/libglusterfs/src/xlator.h b/libglusterfs/src/xlator.h index a00d4975d92..f71d5dea9bd 100644 --- a/libglusterfs/src/xlator.h +++ b/libglusterfs/src/xlator.h @@ -475,6 +475,13 @@ typedef int32_t (*fop_readdir_cbk_t) (call_frame_t *frame,  				      int32_t op_errno,  				      gf_dirent_t *entries); +typedef int32_t (*fop_readdirp_cbk_t) (call_frame_t *frame, +				       void *cookie, +				       xlator_t *this, +				       int32_t op_ret, +				       int32_t op_errno, +				       gf_dirent_t *entries); +  typedef int32_t (*fop_xattrop_cbk_t) (call_frame_t *frame,  				      void *cookie,  				      xlator_t *this, @@ -750,6 +757,12 @@ typedef int32_t (*fop_readdir_t) (call_frame_t *frame,  				  size_t size,  				  off_t offset); +typedef int32_t (*fop_readdirp_t) (call_frame_t *frame, +			           xlator_t *this, +				   fd_t *fd, +				   size_t size, +				   off_t offset); +  typedef int32_t (*fop_xattrop_t) (call_frame_t *frame,  				  xlator_t *this,  				  loc_t *loc, @@ -811,6 +824,7 @@ struct xlator_fops {  	fop_fsync_t          fsync;  	fop_opendir_t        opendir;  	fop_readdir_t        readdir; +	fop_readdirp_t       readdirp;  	fop_fsyncdir_t       fsyncdir;  	fop_statfs_t         statfs;  	fop_setxattr_t       setxattr; @@ -862,6 +876,7 @@ struct xlator_fops {  	fop_fsync_cbk_t          fsync_cbk;  	fop_opendir_cbk_t        opendir_cbk;  	fop_readdir_cbk_t        readdir_cbk; +	fop_readdirp_cbk_t       readdirp_cbk;  	fop_fsyncdir_cbk_t       fsyncdir_cbk;  	fop_statfs_cbk_t         statfs_cbk;  	fop_setxattr_cbk_t       setxattr_cbk;  | 
