volume_snapshot_delete: deactivate before deleting
This commit is contained in:
committed by
Dietmar Maurer
parent
9b256d4676
commit
399581a2b3
@ -709,6 +709,8 @@ sub volume_snapshot_delete {
|
||||
|
||||
my $path = $class->filesystem_path($scfg, $volname);
|
||||
|
||||
$class->deactivate_volume($storeid, $scfg, $volname, $snap, {});
|
||||
|
||||
my $cmd = ['/usr/bin/qemu-img', 'snapshot','-d', $snap, $path];
|
||||
|
||||
run_command($cmd);
|
||||
|
||||
Reference in New Issue
Block a user