]> git.proxmox.com Git - mirror_qemu.git/commit
nbd: Support auto-read-only option
authorKevin Wolf <kwolf@redhat.com>
Mon, 8 Oct 2018 15:27:18 +0000 (17:27 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 5 Nov 2018 14:09:55 +0000 (15:09 +0100)
commit6c2e581d4d7751f035e9bac0384703879c8a1538
treefa7435f4f6ef587d7df116606e0741d8c69e5e77
parenteaa2410f1ea864609090c0a5fda9e0ce9499da79
nbd: Support auto-read-only option

If read-only=off, but auto-read-only=on is given, open a read-write NBD
connection if the server provides a read-write export, but instead of
erroring out for read-only exports, just degrade to read-only.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block/nbd-client.c