[libvirt] [PATCH 2/9] qemu: domain: Reject copy_on_read for read-only disks

Ján Tomko jtomko at redhat.com
Tue Jul 10 08:50:42 UTC 2018


On Tue, Jul 10, 2018 at 10:44:42AM +0200, Peter Krempa wrote:
>The sectors read from the backing image need to be written to the top
>level image. If a disk is marked read-only the image can't be written.
>
>QEMU handled that by disabling copy_on_read and reporting a warning:
>
>-drive file=/var/lib/libvirt/images/c,format=qcow2,if=none,
>    id=drive-scsi0-0-1,readonly=on,copy-on-read=on:
>    warning: disabling copy-on-read on read-only drive
>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/qemu/qemu_domain.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180710/d98328b8/attachment-0001.sig>


More information about the libvir-list mailing list