]> git.proxmox.com Git - pve-container.git/commitdiff
special case btrfs+quotas to use subvolumes
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 22 Jun 2021 12:18:27 +0000 (14:18 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 23 Jun 2021 19:51:19 +0000 (21:51 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/PVE/LXC.pm

index 0a8a532593eac70227169c8ae40611df47bfbe4f..fc06842a0f1fe26053043820a1e8c045721b0450 100644 (file)
@@ -1893,7 +1893,7 @@ sub alloc_disk {
     eval {
        my $do_format = 0;
        if ($scfg->{content}->{rootdir} && $scfg->{path}) {
-           if ($size_kb > 0) {
+           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 {