mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 06:25:19 +00:00
qemu: backup: Use format nodename accessors
Both modified cases in this patch require the effective nodename as they deal with the data being backed up. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
11567c1e50
commit
47bd985ebb
@ -335,9 +335,9 @@ qemuBackupDiskPrepareDataOnePush(virJSONValue *actions,
|
|||||||
syncmode = QEMU_MONITOR_TRANSACTION_BACKUP_SYNC_MODE_INCREMENTAL;
|
syncmode = QEMU_MONITOR_TRANSACTION_BACKUP_SYNC_MODE_INCREMENTAL;
|
||||||
|
|
||||||
if (qemuMonitorTransactionBackup(actions,
|
if (qemuMonitorTransactionBackup(actions,
|
||||||
dd->domdisk->src->nodeformat,
|
qemuBlockStorageSourceGetEffectiveNodename(dd->domdisk->src),
|
||||||
dd->blockjob->name,
|
dd->blockjob->name,
|
||||||
dd->store->nodeformat,
|
qemuBlockStorageSourceGetEffectiveNodename(dd->store),
|
||||||
dd->incrementalBitmap,
|
dd->incrementalBitmap,
|
||||||
syncmode) < 0)
|
syncmode) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
@ -355,9 +355,9 @@ qemuBackupDiskPrepareDataOnePull(virJSONValue *actions,
|
|||||||
dd->backupdisk->exportbitmap = g_strdup(dd->incrementalBitmap);
|
dd->backupdisk->exportbitmap = g_strdup(dd->incrementalBitmap);
|
||||||
|
|
||||||
if (qemuMonitorTransactionBackup(actions,
|
if (qemuMonitorTransactionBackup(actions,
|
||||||
dd->domdisk->src->nodeformat,
|
qemuBlockStorageSourceGetEffectiveNodename(dd->domdisk->src),
|
||||||
dd->blockjob->name,
|
dd->blockjob->name,
|
||||||
dd->store->nodeformat,
|
qemuBlockStorageSourceGetEffectiveNodename(dd->store),
|
||||||
NULL,
|
NULL,
|
||||||
QEMU_MONITOR_TRANSACTION_BACKUP_SYNC_MODE_NONE) < 0)
|
QEMU_MONITOR_TRANSACTION_BACKUP_SYNC_MODE_NONE) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user