From 9c526a7a54b90608463380deffe94e1c9d17db15 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Thu, 19 May 2011 15:09:43 +0200 Subject: Fix splice_read --- lib/fuse_lowlevel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/fuse_lowlevel.c') diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c index 1715e2e1..55bce2b 100644 --- a/lib/fuse_lowlevel.c +++ b/lib/fuse_lowlevel.c @@ -1601,8 +1601,7 @@ static void do_init(fuse_req_t req, fuse_ino_t nodeid, const void *inarg) f->conn.want |= FUSE_CAP_SPLICE_WRITE; if (f->splice_move) f->conn.want |= FUSE_CAP_SPLICE_MOVE; - if (f->splice_read && - (f->op.write_buf || f->op.retrieve_reply)) + if (f->splice_read) f->conn.want |= FUSE_CAP_SPLICE_READ; } -- cgit v1.2.3