]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: add snapshot backing store support to vol-create-as
authorJustin Clift <justin@salasaga.org>
Tue, 8 Jun 2010 16:38:32 +0000 (02:38 +1000)
committerEric Blake <eblake@redhat.com>
Thu, 10 Jun 2010 18:03:13 +0000 (12:03 -0600)
commitb28a068b430d430d08b7b72fdc2ffc2deb58fa4c
tree298d9e1cb88042ff7deff32aec86be304c0eb23d
parent3cf642a0f90551c4bde23fc0d571d1074717b0de
virsh: add snapshot backing store support to vol-create-as

This patch adds two new parameters to the vol-create-as command:

 --backing-vol <volume-name-or-key-or-path>
 --backing-vol-format <format-of-backing-vol>

  virsh # vol-create-as guest_images_lvm snapvol1 5G --backing-vol \
              rhel6vm1lun1
  Vol snapvol1 created

  virsh # vol-create-as image_dir qcow2snap2 5G --format qcow2 \
              --backing-vol imagevol1.qcow2 \
              --backing-vol-format qcow2
  Vol qcow2snap2 created

Additionally, the virsh man page update fixes incorrect snapshot
parameters that were included in my prior bulk volume command patch.
tools/virsh.c
tools/virsh.pod