]> git.ipfire.org Git - thirdparty/libvirt.git/commit
snapshot: teach virsh about new undefine flags
authorEric Blake <eblake@redhat.com>
Fri, 12 Aug 2011 02:24:19 +0000 (20:24 -0600)
committerEric Blake <eblake@redhat.com>
Sat, 3 Sep 2011 03:57:33 +0000 (21:57 -0600)
commite88872e9a9610bd903f42b3aa9995acbe36d95be
tree822e92efdfab3fa2465a66205104bf30928999e5
parent282fe1f08c89189e36142fc2d12bae0175038bdd
snapshot: teach virsh about new undefine flags

Similar to 'undefine --managed-save' (commit 83e849c1), we must
assume that the old API is unsafe; however, we cannot emulate
metadata-only deletion on older servers.  Additionally, we have
the wrinkle that while virDomainUndefineFlags and managed save
cleanup were introduced in 0.9.4, it wasn't until 0.9.5 that
snapshots block undefine of a domain.  Do the best we can given
the server we are talking to.

* tools/virsh.c (cmdUndefine): Add --snapshots-metadata flag.
* tools/virsh.pod (undefine, destroy, shutdown): Document effect
of snapshots.
tools/virsh.c
tools/virsh.pod