diff options
author | Liu Bo <bo.liu@linux.alibaba.com> | 2019-06-07 10:38:18 +0800 |
---|---|---|
committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2020-01-23 16:41:37 +0000 |
commit | b7ed733a3841c4d489d3bd6ca7ed23c84db119c2 (patch) | |
tree | b29c59d477c3d5db1e4fb6830203f897255c95d8 /tools | |
parent | 96814800d2b49d18737c36e021c387697ec40c62 (diff) | |
download | qemu-b7ed733a3841c4d489d3bd6ca7ed23c84db119c2.zip qemu-b7ed733a3841c4d489d3bd6ca7ed23c84db119c2.tar.gz qemu-b7ed733a3841c4d489d3bd6ca7ed23c84db119c2.tar.bz2 |
virtiofsd: enable PARALLEL_DIROPS during INIT
lookup is a RO operations, PARALLEL_DIROPS can be enabled.
Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/virtiofsd/fuse_lowlevel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/virtiofsd/fuse_lowlevel.c b/tools/virtiofsd/fuse_lowlevel.c index aac282f..70568d2 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; } |