From 55f55db6500835e95b324a2f28144c6a3dc55c62 Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Fri, 2 Oct 2009 03:07:53 +0000 Subject: core: Separate readdirp and readdir fops Signed-off-by: Anand V. Avati BUG: 292 (Separate readdirp functionality from readdir fop) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=292 --- libglusterfs/src/call-stub.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'libglusterfs/src/call-stub.h') 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; @@ -1229,6 +1242,20 @@ fop_readdir_stub (call_frame_t *frame, size_t size, 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, -- cgit