From b7ed733a3841c4d489d3bd6ca7ed23c84db119c2 Mon Sep 17 00:00:00 2001 From: Liu Bo Date: Fri, 7 Jun 2019 10:38:18 +0800 Subject: virtiofsd: enable PARALLEL_DIROPS during INIT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit lookup is a RO operations, PARALLEL_DIROPS can be enabled. Signed-off-by: Liu Bo Reviewed-by: Daniel P. Berrangé Signed-off-by: Dr. David Alan Gilbert --- tools/virtiofsd/fuse_lowlevel.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools') diff --git a/tools/virtiofsd/fuse_lowlevel.c b/tools/virtiofsd/fuse_lowlevel.c index aac282f278..70568d22a4 100644 --- a/tools/virtiofsd/fuse_lowlevel.c +++ b/tools/virtiofsd/fuse_lowlevel.c @@ -2062,6 +2062,9 @@ static void do_init(fuse_req_t req, fuse_ino_t nodeid, if (se->conn.want & FUSE_CAP_ASYNC_READ) { outarg.flags |= FUSE_ASYNC_READ; } + if (se->conn.want & FUSE_CAP_PARALLEL_DIROPS) { + outarg.flags |= FUSE_PARALLEL_DIROPS; + } if (se->conn.want & FUSE_CAP_POSIX_LOCKS) { outarg.flags |= FUSE_POSIX_LOCKS; } -- cgit v1.2.3