From: Peter Krempa Date: Fri, 20 Dec 2019 11:33:02 +0000 (+0100) Subject: qemu: backup: Implement support for backup disk export name configuration X-Git-Tag: v6.1.0-rc1~447 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bce4ac55f8d3df9d649c74d2f35feeaad4422028;p=thirdparty%2Flibvirt.git qemu: backup: Implement support for backup disk export name configuration Pass the exportname as configured when exporting the image via NBD and fill it with the default if it's not configured. Signed-off-by: Peter Krempa Reviewed-by: Daniel Henrique Barboza Reviewed-by: Eric Blake --- diff --git a/src/qemu/qemu_backup.c b/src/qemu/qemu_backup.c index c47de2f4a8..2cc0e6ab07 100644 --- a/src/qemu/qemu_backup.c +++ b/src/qemu/qemu_backup.c @@ -548,9 +548,12 @@ qemuBackupBeginPullExportDisks(virDomainObjPtr vm, for (i = 0; i < ndisks; i++) { struct qemuBackupDiskData *dd = disks + i; + if (!dd->backupdisk->exportname) + dd->backupdisk->exportname = g_strdup(dd->domdisk->dst); + if (qemuMonitorNBDServerAdd(priv->mon, dd->store->nodeformat, - dd->domdisk->dst, + dd->backupdisk->exportname, false, dd->incrementalBitmap) < 0) return -1;