otherwise the exception doesn't make much sense Signed-off-by: Wolfgang Bumiller <w.bumil...@proxmox.com> --- src/PVE/LXC.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index fc06842..93286f6 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -1896,9 +1896,9 @@ sub alloc_disk { if ($size_kb > 0 && !($scfg->{type} eq 'btrfs' && $scfg->{quotas})) { $volid = PVE::Storage::vdisk_alloc($storecfg, $storage, $vmid, 'raw', undef, $size_kb); $do_format = 1; } else { - $volid = PVE::Storage::vdisk_alloc($storecfg, $storage, $vmid, 'subvol', undef, 0); + $volid = PVE::Storage::vdisk_alloc($storecfg, $storage, $vmid, 'subvol', undef, $size_kb); $needs_chown = 1; } } elsif ($scfg->{type} eq 'zfspool') { $volid = PVE::Storage::vdisk_alloc($storecfg, $storage, $vmid, 'subvol', undef, $size_kb); -- 2.30.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel