]> git.ipfire.org Git - thirdparty/libvirt.git/commit
snapshot: refactor virsh snapshot creation
authorEric Blake <eblake@redhat.com>
Thu, 18 Aug 2011 20:07:43 +0000 (14:07 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 2 Sep 2011 23:44:45 +0000 (17:44 -0600)
commit90ec08ed733974cd9dba93134e1cbe707e2abab4
tree514553a84b7632db994b40a4bf249b05e24c0b43
parentaf65695af0472f95e912e532702f462214ba5992
snapshot: refactor virsh snapshot creation

The next patch will make snapshot creation more complex, so it's
better to avoid repetition of the complexity.

* tools/virsh.c (vshSnapshotCreate): New helper function.
(cmdSnapshotCreate, cmdSnapshotCreateAs): Use it.
tools/virsh.c