libvirt/include/libvirt
Eric Blake 95f8e3237e snapshot: Add VIR_DOMAIN_SNAPSHOT_CREATE_VALIDATE flag
We've been doing a terrible job of performing XML validation in our
various API that parse XML with a corresponding schema (we started
with domains back in commit dd69a14f, v1.2.12, but didn't catch all
domain-related APIs, didn't document the use of the flag, and didn't
cover other XML). New APIs (like checkpoints) should do the validation
unconditionally, but it doesn't hurt to continue retrofitting existing
APIs to at least allow the option.

While there are many APIs that could be improved, this patch focuses
on wiring up a new snapshot XML creation flag through all the
hypervisors that support snapshots, as well as exposing it in 'virsh
snapshot-create'.  For 'virsh snapshot-create-as', we blindly set the
flag without a command-line option, since the XML we create from the
command line should generally always comply (note that validation
might cause failures where it used to succeed, such as if we tighten
the RNG to reject a name of '../\n'); but blindly passing the flag
means we also have to add in fallback code to disable validation if
the server is too old to understand the flag.

Signed-off-by: Eric Blake <eblake@redhat.com>
Acked-by: Peter Krempa <pkrempa@redhat.com>
2019-07-10 17:34:58 -05:00
..
Makefile.am admin: enable both admin API functionality and tarball distribution 2016-06-26 00:21:06 +02:00
libvirt-admin.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
libvirt-common.h.in Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
libvirt-domain-snapshot.h snapshot: Add VIR_DOMAIN_SNAPSHOT_CREATE_VALIDATE flag 2019-07-10 17:34:58 -05:00
libvirt-domain.h qemu: Add entry for balloon stats stat-htlb-pgalloc and stat-htlb-pgfail 2019-05-20 11:18:25 +02:00
libvirt-event.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
libvirt-host.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
libvirt-interface.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
libvirt-lxc.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
libvirt-network.h network: add virNetworkPortRef API 2019-06-19 11:21:38 +01:00
libvirt-nodedev.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
libvirt-nwfilter.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
libvirt-qemu.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
libvirt-secret.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
libvirt-storage.h libvirt: Introduce virConnectGetStoragePoolCapabilities 2019-03-06 11:12:48 -05:00
libvirt-stream.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
libvirt.h backup: Introduce virDomainCheckpointPtr 2019-03-26 15:40:57 -05:00
virterror.h Revert "error: Add VIR_ERR_DEPRECATED error code" 2019-06-27 14:47:10 +01:00