From: Peter Krempa <pkrempa@redhat.com> Allow clients to pass in FD for the scratch or output file of the backup. All code is in place now, it just needs to be allowed in the schema. Signed-off-by: Peter Krempa <pkrempa@redhat.com> --- src/conf/schemas/domainbackup.rng | 2 ++ tests/domainbackupxml2xmlin/backup-pull-fd.xml | 4 ++-- tests/domainbackupxml2xmlout/backup-pull-fd.xml | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/conf/schemas/domainbackup.rng b/src/conf/schemas/domainbackup.rng index 7140dd7516..745a91c33c 100644 --- a/src/conf/schemas/domainbackup.rng +++ b/src/conf/schemas/domainbackup.rng @@ -187,6 +187,7 @@ <attribute name="file"> <ref name="absFilePath"/> </attribute> + <ref name="fdgroup"/> <interleave> <zeroOrMore> <ref name="devSeclabel"/> @@ -269,6 +270,7 @@ <attribute name="file"> <ref name="absFilePath"/> </attribute> + <ref name="fdgroup"/> <interleave> <zeroOrMore> <ref name="devSeclabel"/> diff --git a/tests/domainbackupxml2xmlin/backup-pull-fd.xml b/tests/domainbackupxml2xmlin/backup-pull-fd.xml index 02ae20d665..1a9765d988 100644 --- a/tests/domainbackupxml2xmlin/backup-pull-fd.xml +++ b/tests/domainbackupxml2xmlin/backup-pull-fd.xml @@ -3,11 +3,11 @@ <server transport='fd' fdgroup='nbdfd'/> <disks> <disk name='vda' type='file'> - <scratch file='/path/to/file'/> + <scratch file='/path/to/file' fdgroup='scratchfd-vda'/> </disk> <disk name='hda' backup='no'/> <disk name='vdc' type='file' backupmode='full'> - <scratch file='/path/to/file'/> + <scratch file='/path/to/file' fdgroup='scratchfd-vdc'/> </disk> <disk name='vdd' type='file' backupmode='incremental'> <scratch file='/path/to/file'/> diff --git a/tests/domainbackupxml2xmlout/backup-pull-fd.xml b/tests/domainbackupxml2xmlout/backup-pull-fd.xml index 16b9b0be50..348fc21134 100644 --- a/tests/domainbackupxml2xmlout/backup-pull-fd.xml +++ b/tests/domainbackupxml2xmlout/backup-pull-fd.xml @@ -3,11 +3,11 @@ <server transport='fd' fdgroup='nbdfd'/> <disks> <disk name='vda' backup='yes' type='file' backupmode='incremental' incremental='1525889631'> - <scratch file='/path/to/file'/> + <scratch file='/path/to/file' fdgroup='scratchfd-vda'/> </disk> <disk name='hda' backup='no'/> <disk name='vdc' backup='yes' type='file' backupmode='full'> - <scratch file='/path/to/file'/> + <scratch file='/path/to/file' fdgroup='scratchfd-vdc'/> </disk> <disk name='vdd' backup='yes' type='file' backupmode='incremental' incremental='1525889631'> <scratch file='/path/to/file'/> -- 2.56.0