libvirt/tests
Peter Krempa 7e5b993d3b backup: Allow configuring incremental backup per-disk individually
The semantics of the backup operation don't strictly require that all
disks being backed up are part of the same incremental part (when a disk
was checkpointed/backed up separately or in a different VM), or even
they may not have a previous checkpoint at all (e.g. when the disk
was freshly hotplugged to the vm).

In such cases we can still create a common checkpoint for all of them
and backup differences according to configuration.

This patch adds a per-disk configuration of the checkpoint to do the
incremental backup from via the 'incremental' attribute and allows
perform full backups via the 'backupmode' attribute.

Note that no changes to the qemu driver are necessary to take advantage
of this as we already obey the per-disk 'incremental' field.

https://bugzilla.redhat.com/show_bug.cgi?id=1829829

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
2020-07-08 08:40:30 +02:00
..
bhyveargv2xmldata
bhyvexml2argvdata
bhyvexml2xmloutdata
capabilityschemadata
commanddata util: keep the pidfile locked 2020-03-25 09:04:49 +01:00
cputestdata cpu_map: Add missing AMD SVM features 2020-06-19 21:59:31 +02:00
domainbackupxml2xmlin backup: Allow configuring incremental backup per-disk individually 2020-07-08 08:40:30 +02:00
domainbackupxml2xmlout backup: Allow configuring incremental backup per-disk individually 2020-07-08 08:40:30 +02:00
domaincapsdata cpu_map: Add missing AMD SVM features 2020-06-19 21:59:31 +02:00
domainconfdata
domainschemadata
fchostdata/fc_host
genericxml2xmlindata conf: Add support for setting timeout and readahead size for network disks 2020-03-16 15:51:44 +01:00
genericxml2xmloutdata
interfaceschemadata
libxlxml2domconfigdata tests: Fix the libxl xml2domconfig test 2020-05-07 17:38:41 -06:00
lxcconf2xmldata lxc: Fix wrong addresses statements for IPv{4, 6} in native network definitions 2020-02-06 15:00:57 +01:00
lxcxml2xmldata
lxcxml2xmloutdata
networkxml2confdata tests: Add tests for <lease/> to cover dnsmasq settings 2020-04-23 10:59:33 +02:00
networkxml2firewalldata network: wire up support for IPv6 NAT rules 2020-06-15 17:10:15 +01:00
networkxml2xmlin conf: add an attribute to turn on NAT for IPv6 virtual networks 2020-06-15 17:10:15 +01:00
networkxml2xmlout conf: add an attribute to turn on NAT for IPv6 virtual networks 2020-06-15 17:10:15 +01:00
networkxml2xmlupdatein
networkxml2xmlupdateout
nodedevmdevctldata nodedev: Add testing for 'mdevctl stop' 2020-06-19 10:39:55 +02:00
nodedevschemadata nodedev: Add testing for 'mdevctl start' 2020-06-19 10:39:55 +02:00
nssdata
nwfilterxml2firewalldata
nwfilterxml2xmlin
nwfilterxml2xmlout
qemuagentdata
qemublocktestdata qemublocktest: Add test cases for handling bitmaps during block-copy 2020-06-22 16:04:31 +02:00
qemucapabilitiesdata qemu: Extend QEMU capabilities with 'spapr-tpm-proxy' 2020-06-23 17:27:50 +02:00
qemucaps2xmloutdata
qemudomaincheckpointxml2xmlin
qemudomaincheckpointxml2xmlout
qemudomainsnapshotxml2xmlin
qemudomainsnapshotxml2xmlout
qemufirmwaredata
qemuhotplugtestcpus qemuhotplugtestcpus: Always use 'query-cpus-fast' 2020-03-05 11:31:38 +01:00
qemuhotplugtestdevices qemu: Create multipath targets for PRs 2020-03-12 08:04:40 +01:00
qemuhotplugtestdomains qemu: Create multipath targets for PRs 2020-03-12 08:04:40 +01:00
qemumemlockdata
qemumigparamsdata
qemumonitorjsondata tests: validate parsing of CPUs with dies > 1 2020-03-16 16:00:27 +00:00
qemustatusxml2xmldata qemu: domain: Add infrastructure passing in TLS key's decryption key via 'secret' 2020-07-07 12:58:18 +02:00
qemuvhostuserdata
qemuxml2argvdata tests: qemuxml2argv: Test encrypted TLS key for nbd/vxhs disks 2020-07-07 12:58:19 +02:00
qemuxml2xmloutdata tests: add test with PCI and CCW device 2020-06-26 18:53:51 +02:00
secretxml2xmlin
securityselinuxhelperdata
securityselinuxlabeldata
storagepoolcapsschemadata storage: add vmfs filesystem type 2019-12-20 14:31:08 +01:00
storagepoolschemadata
storagepoolxml2argvdata
storagepoolxml2xmlin
storagepoolxml2xmlout
storagevolschemadata
storagevolxml2argvdata
storagevolxml2xmlin
storagevolxml2xmlout
sysinfodata virsysinfo: Parse OEM strings 2020-06-10 14:00:38 +02:00
vboxsnapshotxmldata
vircaps2xmldata tests: add host CPU data files for validating die_id 2020-01-16 15:11:55 +00:00
vircgroupdata
virconfdata rpc: remove use of the term 'whitelist' from RPC code 2020-06-26 15:36:40 +01:00
virfilecachedata
virfiledata
virhostcpudata hostcpu: Implement virHostCPUGetSignature for s390 2020-05-25 16:09:58 +02:00
virjsondata jsontest: Add test cases for deflattening of arrays 2020-03-20 09:47:16 +01:00
virmacmaptestdata
virnetdaemondata
virnetdevopenvswitchdata
virnetdevtestdata/sys/class/net
virnetworkportxml2xmldata tests: fix missing test data for network port XML 2020-02-25 15:43:56 +00:00
virnwfilterbindingxml2xmldata
virpcitestdata
virresctrldata
virscsidata
virstorageutildata
virusbtestdata/sys_bus_usb/devices
vmwareverdata
vmx2xmldata vmx: make 'fileName' optional for CD-ROMs 2020-03-19 11:25:33 +01:00
xlconfigdata tests: check conversion of passthrough hypervisor feature 2020-04-21 09:22:14 -06:00
xmconfigdata tests: Add several net model passthrough tests 2019-04-16 13:11:08 -04:00
xml2vmxdata
.valgrind.supp tests: valgrind.supp: suppress g_type_register_static leaks 2020-03-09 15:46:42 +01:00
bhyveargv2xmlmock.c tests: avoid probing host CPU from bhyve test 2020-01-09 18:05:17 +00:00
bhyveargv2xmltest.c
bhyvexml2argvmock.c qemu/lxc: plumb isolatedPort from config down through bridge attachment 2020-02-20 23:13:15 -05:00
bhyvexml2argvtest.c bhyve: simplify driver caps helpers 2020-02-24 01:52:22 +01:00
bhyvexml2xmltest.c
commandhelper.c src: remove virFilePrintf in favour of g_fprintf 2020-02-04 14:00:45 +00:00
commandtest.c commandtest: Fix test28 error detection 2020-03-24 14:33:29 +01:00
cputest.c cputest: Avoid use of temporary variable in DO_TEST macro 2020-06-15 10:27:37 +02:00
domaincapsmock.c
domaincapstest.c tests: Fix virQEMUDriverConfigNew() calling with respect to @root 2020-04-07 15:26:10 +02:00
domainconftest.c
esxutilstest.c
eventtest.c tests: fix deadlock in eventtest 2020-02-06 13:41:03 +01:00
fchosttest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
fdstreamtest.c Remove virutil.h where possible 2020-02-24 23:15:49 +01:00
genericxml2xmltest.c backupxml2xmltest: Call 'virDomainBackupAlignDisks' before formatting output 2020-07-08 08:40:30 +02:00
interfacexml2xmltest.c
libvirtd-fail
libvirtd-pool
libxlmock.c tests: libxl: do not run the emulator 2020-02-25 12:05:01 +01:00
libxlxml2domconfigtest.c libxl: Add support for max_event_channels 2020-04-09 15:45:05 -06:00
lxcconf2xmltest.c
lxcxml2xmltest.c src: switch to use g_setenv/g_unsetenv 2020-01-03 15:42:12 +00:00
Makefile.am scripts: remove use of the term 'whitelist' from build helpers 2020-06-26 15:36:40 +01:00
metadatatest.c
networkxml2conftest.c networkxml2xmltest: Complete renaming of @actual 2020-04-23 12:38:01 +02:00
networkxml2firewalltest.c network: wire up support for IPv6 NAT rules 2020-06-15 17:10:15 +01:00
networkxml2xmltest.c conf: add an attribute to turn on NAT for IPv6 virtual networks 2020-06-15 17:10:15 +01:00
networkxml2xmlupdatetest.c
nodedevmdevctltest.c nodedev: Add testing for 'mdevctl stop' 2020-06-19 10:39:55 +02:00
nodedevxml2xmltest.c
nsslinktest.c
nssmock.c
nsstest.c src: convert all code to use virsocket.h 2020-01-29 14:51:40 +00:00
nwfilterebiptablestest.c
nwfilterxml2firewalltest.c
nwfilterxml2xmltest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
objecteventtest.c Include unistd.h where used 2020-02-24 23:15:50 +01:00
openvzutilstest.c
openvzutilstest.conf
permitted_file_access.txt scripts: remove use of the term 'whitelist' from build helpers 2020-06-26 15:36:40 +01:00
pkix_asn1_tab.c
qemuagenttest.c qemumonitortestutils: Store a string identifying test monitor entry 2020-04-27 08:13:52 +02:00
qemublocktest.c qemublocktest: Add test cases for handling bitmaps during block-copy 2020-06-22 16:04:31 +02:00
qemucapabilitiestest.c qemu: store the emulator name in the capabilities XML 2019-12-23 16:39:38 +00:00
qemucaps2xmlmock.c
qemucaps2xmltest.c
qemucapsfixreplies
qemucapsprobe.c qemu: Invalidate capabilities when host CPU changes 2020-05-25 16:10:04 +02:00
qemucapsprobemock.c
qemucommandutiltest.c virQEMUBuildCommandLineJSON: Add possibility for using 'on/off' instead of 'yes/no' 2020-05-20 09:41:57 +02:00
qemucpumock.c
qemudomaincheckpointxml2xmltest.c conf: checkpoint: Add a flag storing whether disk 'size' is valid 2020-07-07 12:58:19 +02:00
qemudomainsnapshotxml2xmltest.c src: switch to use g_setenv/g_unsetenv 2020-01-03 15:42:12 +00:00
qemufirmwaretest.c src: switch to use g_setenv/g_unsetenv 2020-01-03 15:42:12 +00:00
qemuhotplugmock.c mock: qemuDomainGetUnplugTimeout: Decrease timeout 2020-04-23 15:57:36 +02:00
qemuhotplugtest.c qemuhotplugtest: Free monitor iff successfully initialized 2020-06-29 12:38:22 +02:00
qemumemlocktest.c Revert "tests: Use qemu:///embed to simplify fakerootdir management" 2020-05-07 22:31:04 +02:00
qemumigparamstest.c
qemumonitorjsontest.c qemu: Avoid deprecated query-migrate-cache-size QMP command 2020-06-17 10:25:33 +02:00
qemumonitortestutils.c testQEMUSchemaValidate(Command): Allow skipping validation of deprecated fields 2020-05-20 08:53:29 +02:00
qemumonitortestutils.h qemumonitortestutils: Introduce qemuMonitorTestSkipDeprecatedValidation 2020-05-20 08:53:29 +02:00
qemusecuritymock.c
qemusecuritytest.c src: remove virFilePrintf in favour of g_fprintf 2020-02-04 14:00:45 +00:00
qemusecuritytest.h
qemuvhostusertest.c src: switch to use g_setenv/g_unsetenv 2020-01-03 15:42:12 +00:00
qemuxml2argvmock.c src: replace gmtime_r/localtime_r/strftime with GDateTime 2020-01-17 10:02:01 +00:00
qemuxml2argvtest.c tests: qemuxml2argv: Test encrypted TLS key for nbd/vxhs disks 2020-07-07 12:58:19 +02:00
qemuxml2xmltest.c tests: add test with PCI and CCW device 2020-06-26 18:53:51 +02:00
scsihosttest.c testVirFindSCSIHostByPCI: Remove unused 'path_addr' 2020-06-15 10:27:37 +02:00
seclabeltest.c
secretxml2xmltest.c
securityselinuxhelper.c src: switch to use g_setenv/g_unsetenv 2020-01-03 15:42:12 +00:00
securityselinuxlabeltest.c
securityselinuxtest.c
shunloadhelper.c
shunloadtest.c src: remove virFilePrintf in favour of g_fprintf 2020-02-04 14:00:45 +00:00
sockettest.c
ssh.c src: remove virFilePrintf in favour of g_fprintf 2020-02-04 14:00:45 +00:00
storagebackendsheepdogtest.c
storagepoolcapstest.c
storagepoolxml2argvtest.c
storagepoolxml2xmltest.c
storagevolxml2argvtest.c
storagevolxml2xmltest.c
sysinfotest.c virsysinfo: Parse OEM strings 2020-06-10 14:00:38 +02:00
test-lib.sh
testutils.c tests: poison $HOME and $XDG_RUNTIME_DIR env variables 2020-05-07 13:39:52 +01:00
testutils.h testutils: remove now unused virTestCaptureProgramOutput 2020-02-11 16:30:18 +01:00
testutilshostcpus.h
testutilslxc.c conf: don't use passed in caps in post parse method 2019-12-09 10:15:16 +00:00
testutilslxc.h
testutilsqemu.c qemu: don't continue loading caps if outdated 2020-06-23 17:33:30 +01:00
testutilsqemu.h qemuxml2argvtest: Add QAPI/QMP schema validation for -blockdev and -netdev 2020-05-20 09:41:58 +02:00
testutilsqemuschema.c testutilsqemuschema: Allow loading non-latest schema 2020-05-20 09:41:58 +02:00
testutilsqemuschema.h testutilsqemuschema: Allow loading non-latest schema 2020-05-20 09:41:58 +02:00
testutilsxen.c libxl: do not mock virFileMakePath 2020-02-25 12:05:00 +01:00
testutilsxen.h
utiltest.c util: Introduce a parser for kernel cmdline arguments 2020-06-16 09:43:34 +02:00
vboxsnapshotxmltest.c Include unistd.h where used 2020-02-24 23:15:50 +01:00
viralloctest.c
virauthconfigtest.c util: Fix memory leak in virAuthGetCredential 2020-06-16 15:01:05 +02:00
virbitmaptest.c virBitmapNewEmpty: Use g_new0 to allocate and remove error checking 2020-03-20 09:47:16 +01:00
virbuftest.c virBufferTrim: do not accept len 2020-02-03 19:44:38 +01:00
vircaps2xmltest.c tests: add host CPU data files for validating die_id 2020-01-16 15:11:55 +00:00
vircapstest.c tests: qemu: Unify fake machine types filled in for KVM and TCG caps of x86_64 2020-01-27 14:55:03 +01:00
vircgroupmock.c src: assume sys/sysmacros.h always exists on Linux 2020-02-04 14:00:45 +00:00
vircgrouptest.c src: switch to use g_setenv/g_unsetenv 2020-01-03 15:42:12 +00:00
virconftest.c
vircryptotest.c
virdbusmock.c
virdbustest.c
virdeterministichashmock.c
virdriverconnvalidatetest.c
virdrivermoduletest.c
virendiantest.c
virerrortest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virfilecachemock.c
virfilecachetest.c qemu: don't continue loading caps if outdated 2020-06-23 17:33:30 +01:00
virfilemock.c util: use realpath/g_canonicalize_filename 2020-01-03 15:42:13 +00:00
virfiletest.c Include unistd.h where used 2020-02-24 23:15:50 +01:00
virfilewrapper.c
virfilewrapper.h
virfirewalltest.c
virhashdata.h
virhashtest.c tests: hash: Test case for adding duplicate hash entry 2020-01-24 13:45:38 +01:00
virhostcpumock.c
virhostcputest.c hostcpu: Introduce virHostCPUGetSignature 2020-05-25 16:09:41 +02:00
virhostdevmock.c tests: Introduce virhostdevmock 2020-05-06 16:24:31 +02:00
virhostdevtest.c tests: Introduce virhostdevmock 2020-05-06 16:24:31 +02:00
viridentitytest.c
viriscsitest.c
virjsontest.c jsontest: Add test cases for deflattening of arrays 2020-03-20 09:47:16 +01:00
virkeycodetest.c Remove virutil.h where possible 2020-02-24 23:15:49 +01:00
virkmodtest.c util: remove unused virKModConfig method 2020-06-22 18:22:34 +01:00
virlockspacetest.c src: add virutil.h to more source files for geteuid() compat 2020-02-25 10:02:15 +00:00
virlogtest.c
virmacmaptest.c
virmock.h
virmockstathelpers.c
virnetdaemonmock.c
virnetdaemontest.c tests: switch away from HAVE_SOCKETPAIR 2020-03-19 14:39:38 +01:00
virnetdevbandwidthmock.c
virnetdevbandwidthtest.c
virnetdevmock.c
virnetdevopenvswitchtest.c
virnetdevtest.c
virnetmessagetest.c tests: conditionalize use of SIGPIPE 2020-01-29 14:51:40 +00:00
virnetserverclientmock.c
virnetserverclienttest.c tests: switch away from HAVE_SOCKETPAIR 2020-03-19 14:39:38 +01:00
virnetsockettest.c tests: include unistd.h instead of virutil.h 2020-02-24 23:15:49 +01:00
virnettlscontexttest.c tests: include unistd.h instead of virutil.h 2020-02-24 23:15:49 +01:00
virnettlshelpers.c virnettlshelpers: Update private key 2020-07-01 13:26:04 +02:00
virnettlshelpers.h
virnettlssessiontest.c src: convert all code to use virsocket.h 2020-01-29 14:51:40 +00:00
virnetworkportxml2xmltest.c tests: fix missing test data for network port XML 2020-02-25 15:43:56 +00:00
virnumamock.c
virnwfilterbindingxml2xmltest.c
virpcimock.c src: replace last_component() with g_path_get_basename() 2020-01-03 15:42:13 +00:00
virpcitest.c src: switch to use g_setenv/g_unsetenv 2020-01-03 15:42:12 +00:00
virpolkittest.c
virportallocatormock.c src: convert all code to use virsocket.h 2020-01-29 14:51:40 +00:00
virportallocatortest.c Remove virutil.h where possible 2020-02-24 23:15:49 +01:00
virprocessmock.c
virrandommock.c
virresctrltest.c
virrotatingfiletest.c
virschematest.c news: Convert to reStructuredText 2020-06-05 16:27:33 +02:00
virscsitest.c Include unistd.h where used 2020-02-24 23:15:50 +01:00
virsh-auth src: fix mixup of stack and heap allocated data in auth callback 2020-03-06 17:02:10 +00:00
virsh-auth.xml src: fix mixup of stack and heap allocated data in auth callback 2020-03-06 17:02:10 +00:00
virsh-checkpoint
virsh-cpuset
virsh-define-dev-segfault
virsh-int-overflow
virsh-optparse
virsh-read-bufsiz
virsh-read-non-seekable
virsh-schedinfo
virsh-self-test
virsh-snapshot
virsh-start
virsh-undefine
virsh-uriprecedence
virsh-vcpupin
virshtest.c virshtest: use virCommand instead of custom impl 2020-02-11 16:30:18 +01:00
virstoragetest.c conf: Sanitize handling of <auth> and <encryption> placement for disks 2020-05-12 06:55:00 +02:00
virstorageutiltest.c
virstringtest.c gnulib: delete all gnulib integration 2020-02-07 15:03:54 +00:00
virsystemdtest.c conf: Move virDomainGenerateMachineName to hypervisor/ 2020-04-07 15:26:19 +02:00
virt-aa-helper-test
virt-admin-self-test
virtestmock.c src: convert all code to use virsocket.h 2020-01-29 14:51:40 +00:00
virtimetest.c tests: conditionalize use of SIGPIPE 2020-01-29 14:51:40 +00:00
virtypedparamtest.c
viruritest.c tests: conditionalize use of SIGPIPE 2020-01-29 14:51:40 +00:00
virusbmock.c
virusbtest.c
vmwarevertest.c
vmx2xmltest.c vmx: make 'fileName' optional for CD-ROMs 2020-03-19 11:25:33 +01:00
vshtabletest.c src: optionally include xlocale.h header 2020-02-04 14:00:45 +00:00
xlconfigtest.c tests: check conversion of passthrough hypervisor feature 2020-04-21 09:22:14 -06:00
xmconfigtest.c Remove use of variables passed only to 'VIR_FREE' 2020-06-15 10:27:37 +02:00
xml2vmxtest.c