]> xenbits.xensource.com Git - libvirt.git/commit
rbd: Remove snapshots if the DELETE_WITH_SNAPSHOTS flag has been provided
authorWido den Hollander <wido@widodh.nl>
Tue, 27 Oct 2015 14:16:34 +0000 (15:16 +0100)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 27 Oct 2015 20:12:12 +0000 (16:12 -0400)
commit3c7590e0a435d833895fc7b5be489e53e223ad95
tree68794350ef5752811f89aff283909d0af10c5437
parent10fe8d06688d7a8c201d4410e83ae443913a07b2
rbd: Remove snapshots if the DELETE_WITH_SNAPSHOTS flag has been provided

When a RBD volume has snapshots it can not be removed.

This patch introduces a new flag to force volume removal,
VIR_STORAGE_VOL_DELETE_WITH_SNAPSHOTS.

With this flag any existing snapshots will be removed prior to
removing the volume.

No existing mechanism in libvirt allowed us to pass such information,
so that's why a new flag was introduced.

Signed-off-by: Wido den Hollander <wido@widodh.nl>
include/libvirt/libvirt-storage.h
src/storage/storage_backend_rbd.c