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:
Peter Krempa 2023-10-16 15:36:47 +02:00
parent 11567c1e50
commit 47bd985ebb

View File

@ -335,9 +335,9 @@ qemuBackupDiskPrepareDataOnePush(virJSONValue *actions,
syncmode = QEMU_MONITOR_TRANSACTION_BACKUP_SYNC_MODE_INCREMENTAL;
if (qemuMonitorTransactionBackup(actions,
dd->domdisk->src->nodeformat,
qemuBlockStorageSourceGetEffectiveNodename(dd->domdisk->src),
dd->blockjob->name,
dd->store->nodeformat,
qemuBlockStorageSourceGetEffectiveNodename(dd->store),
dd->incrementalBitmap,
syncmode) < 0)
return -1;
@ -355,9 +355,9 @@ qemuBackupDiskPrepareDataOnePull(virJSONValue *actions,
dd->backupdisk->exportbitmap = g_strdup(dd->incrementalBitmap);
if (qemuMonitorTransactionBackup(actions,
dd->domdisk->src->nodeformat,
qemuBlockStorageSourceGetEffectiveNodename(dd->domdisk->src),
dd->blockjob->name,
dd->store->nodeformat,
qemuBlockStorageSourceGetEffectiveNodename(dd->store),
NULL,
QEMU_MONITOR_TRANSACTION_BACKUP_SYNC_MODE_NONE) < 0)
return -1;