From 1b0d36cc9554a295c5ac043262d9d472ed3fd398 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Tue, 22 Jun 2021 14:18:27 +0200 Subject: [PATCH] special case btrfs+quotas to use subvolumes Signed-off-by: Wolfgang Bumiller --- 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 0a8a532..fc06842 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -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 { -- 2.39.5