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/call-stub.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/call-stub.h')
-rw-r--r-- | libglusterfs/src/call-stub.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/libglusterfs/src/call-stub.h b/libglusterfs/src/call-stub.h index 88e26c24f..ae414026f 100644 --- a/libglusterfs/src/call-stub.h +++ b/libglusterfs/src/call-stub.h @@ -581,6 +581,19 @@ typedef struct { gf_dirent_t entries; } readdir_cbk; + /* readdirp */ + struct { + fop_readdirp_t fn; + fd_t *fd; + size_t size; + off_t off; + } readdirp; + struct { + fop_readdirp_cbk_t fn; + int32_t op_ret, op_errno; + gf_dirent_t entries; + } readdirp_cbk; + /* checksum */ struct { fop_checksum_t fn; @@ -1230,6 +1243,20 @@ fop_readdir_stub (call_frame_t *frame, off_t off); call_stub_t * +fop_readdirp_stub (call_frame_t *frame, + fop_readdir_t fn, + fd_t *fd, + size_t size, + off_t off); + +call_stub_t * +fop_readdirp_cbk_stub (call_frame_t *frame, + fop_readdir_cbk_t fn, + int32_t op_ret, + int32_t op_errno, + gf_dirent_t *entries); + +call_stub_t * fop_readdir_cbk_stub (call_frame_t *frame, fop_readdir_cbk_t fn, int32_t op_ret, |