]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Add --delete-snapshots flag for undefine and vol-delete
authorJohn Ferlan <jferlan@redhat.com>
Wed, 2 Dec 2015 23:04:04 +0000 (18:04 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 18 Dec 2015 15:51:08 +0000 (10:51 -0500)
commit2eba5c5635a041a0a3a736e917fa1495c97c132b
tree6aca5c845f363ce4873131567bd68eb0239524b1
parent7d792b99b8b0e13577b3f16d0f4d2ace388a7559
virsh: Add --delete-snapshots flag for undefine and vol-delete

https://bugzilla.redhat.com/show_bug.cgi?id=1281710

Commit id '3c7590e0a' added the flag to the rbd backend, but provided
no means via virsh to use the flag.  This patch adds a '--delete-snapshots'
option to both the "undefine" and "vol-delete" commands.

For "undefine", the flag is combined with the "--remove-all-storage" flag
in order to add the appropriate flag for the virStorageVolDelete call;
whereas, for the "vol-delete" command, just the flag is sufficient since
it's only operating on one volume.

Currently only supported for rbd backends.
tools/virsh-domain.c
tools/virsh-volume.c
tools/virsh.pod