]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: domain: Check few more fields for when changing disk source
authorPeter Krempa <pkrempa@redhat.com>
Thu, 28 Apr 2016 14:45:02 +0000 (16:45 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 2 May 2016 07:03:02 +0000 (09:03 +0200)
commit3b3debfb7f70696e55642ed34be2848d8ba4b8b7
treed7765ad7d7a6c046cbea3ee756c6847f22bb277c
parenta84d604db535b0e2365a8faaa67d1d7ebe365cdf
qemu: domain: Check few more fields for when changing disk source

Both disk->src->shared and disk->src->readonly can't be modified when
changing disk source for floppy and cdrom drives since both arguments
are passed as arguments of the disk rather than the image in qemu.

Historically these fields have only two possible values since they are
represented as XML thus we need to ignore if user did not provide them
and thus we are treating them as false.
src/qemu/qemu_domain.c