mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-26 14:03:49 +03:00
6f33e441e2
Call the post-processing function so that we can validate that it does the correct thing. virDomainBackupAlignDisks requires disk definitions to be present so let's fake them by copying disks from the backup definition and add one extra disk 'vdextradisk'. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
38 lines
1.3 KiB
XML
38 lines
1.3 KiB
XML
<domainbackup mode='pull'>
|
|
<incremental>1525889631</incremental>
|
|
<server transport='tcp' tls='yes' name='localhost' port='10809'/>
|
|
<disks>
|
|
<disk name='vda' backup='yes' state='running' type='file' exportname='test-vda' exportbitmap='blah'>
|
|
<driver type='qcow2'/>
|
|
<scratch file='/path/to/file'>
|
|
<encryption format='luks'>
|
|
<secret type='passphrase' uuid='0a81f5b2-8403-7b23-c8d6-21ccc2f80d6f'/>
|
|
</encryption>
|
|
</scratch>
|
|
</disk>
|
|
<disk name='vdb' backup='yes' state='complete' type='file' exportname='test-vda' exportbitmap='blah'>
|
|
<driver type='qcow2'/>
|
|
<scratch file='/path/to/file'>
|
|
<encryption format='luks'>
|
|
<secret type='passphrase' usage='/storage/backup/vdb'/>
|
|
</encryption>
|
|
</scratch>
|
|
</disk>
|
|
<disk name='vdc' backup='yes' state='running' type='block'>
|
|
<driver type='qcow2'/>
|
|
<scratch dev='/dev/block'>
|
|
<encryption format='luks'>
|
|
<secret type='passphrase' usage='/storage/backup/vdc'/>
|
|
</encryption>
|
|
</scratch>
|
|
</disk>
|
|
<disk name='vdextradisk' backup='no'/>
|
|
</disks>
|
|
<privateData>
|
|
<objects>
|
|
<secret type='tlskey' alias='test-tlskey'/>
|
|
<TLSx509 alias='test-tlsobj'/>
|
|
</objects>
|
|
</privateData>
|
|
</domainbackup>
|