mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
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 <pkrempa@redhat.com> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
12ccd8d4db
commit
bce4ac55f8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user