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/protocol.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libglusterfs/src/protocol.h') diff --git a/libglusterfs/src/protocol.h b/libglusterfs/src/protocol.h index 59ebaf2b..f163d0ed 100644 --- a/libglusterfs/src/protocol.h +++ b/libglusterfs/src/protocol.h @@ -639,6 +639,18 @@ typedef struct { } __attribute__((packed)) gf_fop_readdir_rsp_t; +typedef struct { + uint64_t ino; + int64_t fd; + uint64_t offset; + uint32_t size; +} __attribute__((packed)) gf_fop_readdirp_req_t; +typedef struct { + uint32_t size; + char buf[0]; +} __attribute__((packed)) gf_fop_readdirp_rsp_t; + + typedef struct { uint64_t ino; uint32_t mask; -- cgit