]> xenbits.xensource.com Git - libvirt.git/commit
storage: Properly track that backing chain members are readonly
authorPeter Krempa <pkrempa@redhat.com>
Wed, 11 Apr 2018 13:35:02 +0000 (15:35 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 7 May 2018 12:41:20 +0000 (14:41 +0200)
commit3817fa10c4ad9888798ac653d73166d8435bf45c
tree48aac7d7e62330a3fe9a1b9c19bff2e7970b62b9
parent5dbdd401e81181b77b6d8ed303b772b9297ee6b7
storage: Properly track that backing chain members are readonly

Everything besides the top of the chain is readonly. Track this when
parsing the XML and detecting the chain from the disk. Also fix the
state when taking snapshots.

All other cases where the top image is changed already preserve the
readonly state from the original image.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/conf/domain_conf.c
src/qemu/qemu_driver.c
src/util/virstoragefile.c