]> git.ipfire.org Git - thirdparty/qemu.git/commit - blockdev.c
block: Make auto-read-only=on default for -drive
authorKevin Wolf <kwolf@redhat.com>
Wed, 17 Oct 2018 16:24:30 +0000 (18:24 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 5 Nov 2018 14:09:55 +0000 (15:09 +0100)
commit9384a444f6ebcd66bba0ae3c8434120d03c8dfea
tree9e54a99750e7c647dcf16aae33668ed64aa23eea
parent8f3bf50d340372662a35564c669e567c6c846943
block: Make auto-read-only=on default for -drive

While we want machine interfaces like -blockdev and QMP blockdev-add to
add as little auto-detection as possible so that management tools are
explicit about their needs, -drive is a convenience option for human
users. Enabling auto-read-only=on by default there enables users to use
read-only images for read-only guest devices without having to specify
read-only=on explicitly. If they try to attach the image to a read-write
device, they will still get an error message.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
blockdev.c