conf: store mirroring information in virStorageSource
The current implementation of 'virsh blockcopy' (virDomainBlockRebase)
is limited to copying to a local file name. But future patches want
to extend it to also copy to network disks. This patch converts over
to a virStorageSourcePtr, although it should have no semantic change
visible to the user, in anticipation of those future patches being
able to use more fields for non-file destinations.
* src/conf/domain_conf.h (_virDomainDiskDef): Change type of
mirror information.
* src/conf/domain_conf.c (virDomainDiskDefParseXML): Localize
mirror parsing into new object.
(virDomainDiskDefFormat): Adjust clients.
* src/qemu/qemu_domain.c (qemuDomainDeviceDefPostParse):
Likewise.
* src/qemu/qemu_driver.c (qemuDomainBlockPivot)
(qemuDomainBlockJobImpl, qemuDomainBlockCopy): Likewise.
Signed-off-by: NEric Blake <eblake@redhat.com>
-
mentioned in commit 20326db6
-
mentioned in commit 2d03487b
-
mentioned in commit 6cb267e8
-
mentioned in commit e22f1c2e
-
mentioned in commit 261679a8
-
mentioned in commit ecb305fd
-
mentioned in commit 39b5123d
-
mentioned in commit 17df6a9b
-
mentioned in commit 4fb55871
-
mentioned in commit 0e307ecf
-
mentioned in commit 1141cdc9
-
mentioned in commit 2a78c0f9
-
mentioned in commit f527b225
-
mentioned in commit 9bb60cb4
-
mentioned in commit 2fc5924c
-
mentioned in commit f4a7efee
-
mentioned in commit e7ee7542
-
mentioned in commit ea1d4666
-
mentioned in commit b4ef374c
-
mentioned in commit 53bde6b7
-
mentioned in commit a103b53f
-
mentioned in commit 69380800
-
mentioned in commit 60e54a50
-
mentioned in commit a73122a4
-
mentioned in commit 684893e6
-
mentioned in commit b7771f92
-
mentioned in commit 2f7ea630
-
mentioned in commit b850e1a9
-
mentioned in commit 5b3af9c0
-
mentioned in commit b952dbda
-
mentioned in commit bc390b17
-
mentioned in commit 961758a1