]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: add virsh snapshot-current --name
authorEric Blake <eblake@redhat.com>
Wed, 10 Aug 2011 03:10:25 +0000 (21:10 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 11 Aug 2011 03:59:56 +0000 (21:59 -0600)
commit23b4a3f95bba44d6adb0db4b9b19fecf71a50ac1
treea1d02efc78ca572faf45788cc6882e9f595b9f26
parent6927887829f00ea61ab79432d89b029d0ff4fcf4
virsh: add virsh snapshot-current --name

Sometimes, full XML is too much; since most snapshot commands
operate on a snapshot name, there should be an easy way to get
at the current snapshot's name.  For example:

virsh snapshot-revert dom `virsh snapshot-current dom --name`

* tools/virsh.c (cmdSnapshotCurrent): Add an option.
* tools/virsh.pod (snapshot-current): Document it.
tools/virsh.c
tools/virsh.pod