[pve-devel] [PATCH v2 container 3/3] special case btrfs+quotas to use subvolumes
Wolfgang Bumiller
w.bumiller at proxmox.com
Tue Jun 22 14:18:27 CEST 2021
Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
---
New in v2.
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.30.2
More information about the pve-devel
mailing list