mirror of
https://git.proxmox.com/git/qemu-server
synced 2026-01-04 14:09:21 +00:00
qemu_volume_snapshot_delete : fix krbd snapshot delete
like for snapshot, we need to check if krbd is enabled, to known if we need to use qmp delete-drive-snapshot or storage command directly Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
e281273810
commit
1ef7592f1e
@ -3990,11 +3990,11 @@ sub qemu_volume_snapshot_delete {
|
||||
|
||||
my $running = check_running($vmid);
|
||||
|
||||
return if !PVE::Storage::volume_snapshot_delete($storecfg, $volid, $snap, $running);
|
||||
|
||||
return if !$running;
|
||||
|
||||
vm_mon_cmd($vmid, "delete-drive-snapshot", device => $deviceid, name => $snap);
|
||||
if ($running && do_snapshots_with_qemu($storecfg, $volid)){
|
||||
vm_mon_cmd($vmid, "delete-drive-snapshot", device => $deviceid, name => $snap);
|
||||
} else {
|
||||
PVE::Storage::volume_snapshot_delete($storecfg, $volid, $snap, $running);
|
||||
}
|
||||
}
|
||||
|
||||
sub set_migration_caps {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user