diff options
author | Peter Krempa <pkrempa@redhat.com> | 2023-05-15 14:20:16 +0200 |
---|---|---|
committer | Peter Krempa <pkrempa@redhat.com> | 2023-05-16 10:26:33 +0200 |
commit | 1222ada2afe62279ce4c8844694b3cb756ddd60b (patch) | |
tree | 21bcff7ed5fcfbc9e24118a2f0b130a277ef78cf /tests/domainbackupxml2xmlout/backup-push.xml | |
parent | de48ade19586fda704d4f517ffb219960c3d6a08 (diff) | |
download | libvirt-1222ada2afe62279ce4c8844694b3cb756ddd60b.tar.gz |
conf: backup: Fix logic for generating default backup filenames
If the 'disk->store' property is already allocated which happens e.g.
when the disk is described by the backup XML but the optional filename
is not filled in 'virDomainBackupDefAssignStore' would not fill in the
default location.
Fix the logic to do it also if a 'virStorageSource' categorizes as
empty.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Diffstat (limited to 'tests/domainbackupxml2xmlout/backup-push.xml')
-rw-r--r-- | tests/domainbackupxml2xmlout/backup-push.xml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/domainbackupxml2xmlout/backup-push.xml b/tests/domainbackupxml2xmlout/backup-push.xml index 317dcf6e47..fff7db716b 100644 --- a/tests/domainbackupxml2xmlout/backup-push.xml +++ b/tests/domainbackupxml2xmlout/backup-push.xml @@ -5,6 +5,9 @@ <driver type='raw'/> <target file='/path/to/file'/> </disk> + <disk name='vdb' backup='yes' type='file' backupmode='full'> + <target file='/fake/vdb.qcow2.SUFFIX'/> + </disk> <disk name='hda' backup='no'/> <disk name='vdextradisk' backup='no'/> </disks> |