mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-04-28 18:58:27 +00:00
fix #517: api: allow resizing qcow2 disk with snapshots
Support for this was added in QEMU 5.1 by commit 7fa140abf6 ("qcow2: Allow resize of images with internal snapshots"). Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
d62bdac593
commit
5c01f59177
@ -4739,9 +4739,6 @@ __PACKAGE__->register_method({
|
||||
my (undef, undef, undef, undef, undef, undef, $format) =
|
||||
PVE::Storage::parse_volname($storecfg, $drive->{file});
|
||||
|
||||
die "can't resize volume: $disk if snapshot exists\n"
|
||||
if %{$conf->{snapshots}} && $format eq 'qcow2';
|
||||
|
||||
my $volid = $drive->{file};
|
||||
|
||||
die "disk '$disk' has no associated volume\n" if !$volid;
|
||||
|
Loading…
Reference in New Issue
Block a user