diff options
| author | Miklos Szeredi | 2018-08-16 11:14:13 +0200 |
|---|---|---|
| committer | Dr. David Alan Gilbert | 2020-01-23 17:41:37 +0100 |
| commit | ddcbabcb0ea177be3ec3500726b699c7c26ffd93 (patch) | |
| tree | fd5352f4c81bdb502b08afff43d013c5ac5824bc | |
| parent | virtiofsd: passthrough_ll: add renameat2 support (diff) | |
| download | qemu-ddcbabcb0ea177be3ec3500726b699c7c26ffd93.tar.gz qemu-ddcbabcb0ea177be3ec3500726b699c7c26ffd93.tar.xz qemu-ddcbabcb0ea177be3ec3500726b699c7c26ffd93.zip | |
virtiofsd: passthrough_ll: disable readdirplus on cache=never
...because the attributes sent in the READDIRPLUS reply would be discarded
anyway.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
| -rw-r--r-- | tools/virtiofsd/passthrough_ll.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/virtiofsd/passthrough_ll.c b/tools/virtiofsd/passthrough_ll.c index 18d69abcbc..6480c517dc 100644 --- a/tools/virtiofsd/passthrough_ll.c +++ b/tools/virtiofsd/passthrough_ll.c @@ -478,6 +478,10 @@ static void lo_init(void *userdata, struct fuse_conn_info *conn) fuse_log(FUSE_LOG_DEBUG, "lo_init: activating flock locks\n"); conn->want |= FUSE_CAP_FLOCK_LOCKS; } + if (lo->cache == CACHE_NEVER) { + fuse_log(FUSE_LOG_DEBUG, "lo_init: disabling readdirplus\n"); + conn->want &= ~FUSE_CAP_READDIRPLUS; + } } static void lo_getattr(fuse_req_t req, fuse_ino_t ino, |
