]> xenbits.xensource.com Git - libvirt.git/commit
snapshot: add qemu snapshot creation without metadata
authorEric Blake <eblake@redhat.com>
Thu, 1 Sep 2011 21:47:03 +0000 (15:47 -0600)
committerEric Blake <eblake@redhat.com>
Sat, 3 Sep 2011 03:57:32 +0000 (21:57 -0600)
commitece197e9d49bccbd90757ce89de3480432bea1c6
tree363f8e935d5f418f781466a1859c5bbe30cd7daf
parent2b4d8deb6bbcdac0015607797bfebb1faf8a0245
snapshot: add qemu snapshot creation without metadata

Supporting NO_METADATA on snapshot creation is interesting - we must
still return a valid opaque snapshot object, but the user can't get
anything out of it (unless we add a virDomainSnapshotGetName()),
since it is no longer registered with the domain.

Also, virsh now tries to query for secure xml, in anticipation of
when we store <domain> xml inside <domainsnapshot>; for now, we
can trivially support it, since we have nothing secure.

* src/qemu/qemu_driver.c (qemuDomainSnapshotCreateXML): Support
new flag.
(qemuDomainSnapshotGetXMLDesc): Trivially support VIR_DOMAIN_XML_SECURE.
src/qemu/qemu_driver.c