summaryrefslogtreecommitdiffstats
path: root/xlators/mount
diff options
context:
space:
mode:
authorBasavanagowda Kanur <gowda@gluster.com>2009-07-07 07:58:05 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-07-07 16:51:53 -0700
commit80c769b54ed8e95ae3f51e19d2ef8c2e8ea5e44d (patch)
tree05f0936ea4f102726d2bd0c65d87bf0e46eac3e2 /xlators/mount
parent54f5ccceca2531f1a88cb4d0404f92edffa09cae (diff)
use fuse_reply_iov() in fuse_readv_cbk
changes come in two places. configure.ac - define HAVE_FUSE_REPLY_IOV if fuse_reply_iov is available in libfuse. mount/fuse - use fuse_reply_iov() in place of fuse_reply_vec(), if HAVE_FUSE_REPLY_IOV is defined. Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'xlators/mount')
-rw-r--r--xlators/mount/fuse/src/fuse-bridge.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c
index e938db72f..210fbef2a 100644
--- a/xlators/mount/fuse/src/fuse-bridge.c
+++ b/xlators/mount/fuse/src/fuse-bridge.c
@@ -1466,7 +1466,11 @@ fuse_readv_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
frame->root->unique,
op_ret, state->size, state->off, stbuf->st_size);
+#ifdef HAVE_FUSE_REPLY_IOV
+ fuse_reply_iov (req, vector, count);
+#else
fuse_reply_vec (req, vector, count);
+#endif
} else {
gf_log ("glusterfs-fuse", GF_LOG_WARNING,
"%"PRId64": READ => %d (%s)", frame->root->unique,