]> xenbits.xensource.com Git - libvirt.git/commit
virsh: Remove <backingStore> sub-element in virshFindDisk
authorPeter Krempa <pkrempa@redhat.com>
Wed, 14 Feb 2018 14:17:51 +0000 (15:17 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 14 Feb 2018 15:04:46 +0000 (16:04 +0100)
commitf2f4e960601bd8cdbd8e082815caf6940feb599d
tree984aff5c80940d690a35688c161a1edd5b21cbb8
parent28a36fe2ce2e88b45e6d960f113706e1c2732586
virsh: Remove <backingStore> sub-element in virshFindDisk

Previously we've removed the data only in virshUpdateDiskXML when
changing the disk source for the CDROM since the backing store would be
invalid. Move the code into a separate function and callit from
virshFindDisk which is also used when detaching disk.

The detaching code does not necessarily need to get the full backing
chain since it will need to act on the one managed by libvirt anyways
and this also takes care of problems when parts of the backing store
were invalid due to buggy RBD detection code.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
tools/virsh-domain.c