[pve-devel] [PATCH pve-storage] volume_snapshot_delete: deactivate before deleting

Wolfgang Bumiller w.bumiller at proxmox.com
Fri Sep 25 11:53:10 CEST 2015


---
 PVE/Storage.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/PVE/Storage.pm b/PVE/Storage.pm
index c27e9cf..e4f434a 100755
--- a/PVE/Storage.pm
+++ b/PVE/Storage.pm
@@ -200,6 +200,7 @@ sub volume_snapshot_delete {
     if ($storeid) {
         my $scfg = storage_config($cfg, $storeid);
         my $plugin = PVE::Storage::Plugin->lookup($scfg->{type});
+        $plugin->deactivate_volume($storeid, $scfg, $volname, $snap, {});
         return $plugin->volume_snapshot_delete($scfg, $storeid, $volname, $snap, $running);
     } elsif ($volid =~ m|^(/.+)$| && -e $volid) {
         die "snapshot delete file/device '$volid' is not possible\n";
-- 
2.1.4





More information about the pve-devel mailing list