]> git.proxmox.com Git - pve-container.git/commitdiff
btrfs: pass size when creating subvolumes
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 24 Jun 2021 08:14:41 +0000 (10:14 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 24 Jun 2021 09:30:44 +0000 (11:30 +0200)
otherwise the exception doesn't make much sense

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/PVE/LXC.pm

index fc06842a0f1fe26053043820a1e8c045721b0450..93286f64294a4b5639d7e81638623f188106c13d 100644 (file)
@@ -1897,7 +1897,7 @@ sub alloc_disk {
                $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') {