Do not use the 'noacl' mount option when mounting a container disk with an ext4 file system. The option was removed from the kernel in commit 2d544ec923db
The ext4 detection is based on $do_format in alloc_disk. Signed-off-by: Filip Schauer <f.scha...@proxmox.com> --- src/PVE/LXC.pm | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index 7883cfb..6810601 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -1835,8 +1835,26 @@ sub __mountpoint_mount { } my $acl = $mountpoint->{acl}; - if (defined($acl)) { - push @$optlist, ($acl ? 'acl' : 'noacl'); + + if ($acl) { + push @$optlist, 'acl'; + } else { + my $noacl = 1; + + if ($storage) { + my $scfg = PVE::Storage::storage_config($storage_cfg, $storage); + + # Avoid the outdated 'noacl' mount option on ext4 file systems + if ($scfg->{content}->{rootdir} && $scfg->{path}) { + $noacl = ($scfg->{type} eq 'btrfs' && $scfg->{quotas}); + } elsif ($scfg->{type} eq 'zfspool') { + $noacl = 1; + } elsif ($scfg->{content}->{rootdir}) { + $noacl = 0; + } + } + + push @$optlist, 'noacl' if $noacl; } my $optstring = join(',', @$optlist); -- 2.39.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel