diff options
author | Eric Blake <eblake@redhat.com> | 2011-08-19 22:03:38 -0600 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2011-09-05 07:03:04 -0600 |
commit | e03a62b456a04db159d43cd6dc5c1a3520b9b1ad (patch) | |
tree | c2d46a3e7f2f15c906bea0b31217e10ad93f18ed /include | |
parent | 88a993b129436d2c2eef7b9519b55c5a42e4db66 (diff) | |
download | libvirt-e03a62b456a04db159d43cd6dc5c1a3520b9b1ad.tar.gz |
snapshot: add flag for requesting disk snapshot
Prior to this patch, <domainsnapshot>/<disks> was ignored. This
changes it to be an error unless an explicit disk snapshot is
requested (a future patch may relax things if it turns out to
be useful to have a <disks> specification alongside a system
checkpoint).
* include/libvirt/libvirt.h.in
(VIR_DOMAIN_SNAPSHOT_CREATE_DISK_ONLY): New flag.
* src/libvirt.c (virDomainSnapshotCreateXML): Document it.
* src/esx/esx_driver.c (esxDomainSnapshotCreateXML): Disk
snapshots not supported yet.
* src/vbox/vbox_tmpl.c (vboxDomainSnapshotCreateXML): Likewise.
* src/qemu/qemu_driver.c (qemuDomainSnapshotCreateXML): Likewise.
Diffstat (limited to 'include')
-rw-r--r-- | include/libvirt/libvirt.h.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libvirt/libvirt.h.in b/include/libvirt/libvirt.h.in index 4292736f8a..157bef2045 100644 --- a/include/libvirt/libvirt.h.in +++ b/include/libvirt/libvirt.h.in @@ -2581,6 +2581,8 @@ typedef enum { remembering it */ VIR_DOMAIN_SNAPSHOT_CREATE_HALT = (1 << 3), /* Stop running guest after snapshot */ + VIR_DOMAIN_SNAPSHOT_CREATE_DISK_ONLY = (1 << 4), /* disk snapshot, not + system checkpoint */ } virDomainSnapshotCreateFlags; /* Take a snapshot of the current VM state */ |