]> xenbits.xensource.com Git - libvirt.git/commit
snapshot: wire up disk-only flag to snapshot-create
authorEric Blake <eblake@redhat.com>
Mon, 22 Aug 2011 23:12:56 +0000 (17:12 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 5 Sep 2011 13:03:04 +0000 (07:03 -0600)
commit35d52b56bba90f95b6dd31a1f30e3875ec2adc91
tree2d14c7fab92efb42163213943fd573116bb990a7
parente03a62b456a04db159d43cd6dc5c1a3520b9b1ad
snapshot: wire up disk-only flag to snapshot-create

Expose the disk-only flag through virsh.  Additionally, make
virsh snapshot-create-as take an arbitrary number of diskspecs,
which can be used to build up the xml for <domainsnapshot>.

* tools/virsh.c (cmdSnapshotCreate): Add --disk-only.
(cmdSnapshotCreateAs): Likewise, and add argv diskspec.
(vshParseSnapshotDiskspec): New helper function.
(vshCmddefGetOption): Allow naming of argv field.
* tools/virsh.pod (snapshot-create, snapshot-create-as): Document
them.
* tests/virsh-optparse: Test snapshot-create-as parsing.
tests/virsh-optparse
tools/virsh.c
tools/virsh.pod