diff options
author | Greg Kurz <groug@kaod.org> | 2020-03-10 16:12:49 +0100 |
---|---|---|
committer | Greg Kurz <groug@kaod.org> | 2020-03-10 16:12:49 +0100 |
commit | 659f1953281bcfa5ac217e42877d7d3c32eeea38 (patch) | |
tree | ecc6f4aa7c0e58eba1bd0f96db4601cdcc6cd223 /hw | |
parent | 7f368aed672117980f7f09933e1eb3e1139caae6 (diff) |
9p/proxy: Fix export_flags
The common fsdev options are set by qemu_fsdev_add() before it calls
the backend specific option parsing code. In the case of "proxy" this
means "writeout" or "readonly" were simply ignored. This has been
broken from the beginning.
Reported-by: Stéphane Graber <stgraber@ubuntu.com>
Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Message-Id: <158349633705.1237488.8895481990204796135.stgit@bahia.lan>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/9pfs/9p-proxy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/9pfs/9p-proxy.c b/hw/9pfs/9p-proxy.c index 8136e1342d..6f598a0f11 100644 --- a/hw/9pfs/9p-proxy.c +++ b/hw/9pfs/9p-proxy.c @@ -1139,10 +1139,10 @@ static int proxy_parse_opts(QemuOpts *opts, FsDriverEntry *fs, Error **errp) } if (socket) { fs->path = g_strdup(socket); - fs->export_flags = V9FS_PROXY_SOCK_NAME; + fs->export_flags |= V9FS_PROXY_SOCK_NAME; } else { fs->path = g_strdup(sock_fd); - fs->export_flags = V9FS_PROXY_SOCK_FD; + fs->export_flags |= V9FS_PROXY_SOCK_FD; } return 0; } |