]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Add 'index' attribute for <disk><mirror><source>
authorPeter Krempa <pkrempa@redhat.com>
Wed, 13 Mar 2019 16:42:37 +0000 (17:42 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 3 Apr 2019 09:58:09 +0000 (11:58 +0200)
commit22b83a54f590e9993f8696d235957c91583d5f22
tree36980dbc864665e963fb2fc3b4de6f8b1f0dfef8
parent4e797f1af98a3d137ce4d47d7cc33cf0e09eeee3
conf: Add 'index' attribute for <disk><mirror><source>

Similarly to the disk source we need to keep the disk index (which is in
the qemu driver used for identification of the source for block jobs)
for the <mirror> element so that when it's replaced as a disk source
after pivoting all the allocated data is present.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_conf.c
tests/qemuxml2argvdata/disk-mirror.xml
tests/qemuxml2xmloutdata/disk-mirror-active.xml