[pve-devel] [PATCH container 1/2] api: resize: drop error that can never apply

Fiona Ebner f.ebner at proxmox.com
Tue May 30 15:52:06 CEST 2023


Because container images are never qcow2.

Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---
 src/PVE/API2/LXC.pm | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm
index 50c9eaf..f69b44b 100644
--- a/src/PVE/API2/LXC.pm
+++ b/src/PVE/API2/LXC.pm
@@ -1955,9 +1955,6 @@ __PACKAGE__->register_method({
 	    die "can't resize mount point owned by another container ($owner)"
 		if $vmid != $owner;
 
-	    die "can't resize volume: $disk if snapshot exists\n"
-		if %{$conf->{snapshots}} && $format eq 'qcow2';
-
 	    my ($storeid, $volname) = PVE::Storage::parse_volume_id($volid);
 
 	    $rpcenv->check($authuser, "/storage/$storeid", ['Datastore.AllocateSpace']);
-- 
2.39.2






More information about the pve-devel mailing list