[pve-devel] applied: [PATCH container] fix #5907: ignore conflicting mount options for read-only mounts
Thomas Lamprecht
t.lamprecht at proxmox.com
Tue Feb 11 13:15:35 CET 2025
Am 25.11.24 um 14:09 schrieb Filip Schauer:
> When mounting volumes as read-only, certain mount options like
> "discard", "lazytime", and "noatime" are either ignored or can cause the
> mount to fail. For example, attempting to mount with "-t zfs" and
> "-o ro,discard" leads to an error: filesystem cannot be mounted due to
> invalid option 'discard'.
>
> This commit ensures that only valid mount options, such as "nodev",
> "noexec", and "nosuid", are applied to read-only mounts, avoiding
> potential mount failures.
>
> Signed-off-by: Filip Schauer <f.schauer at proxmox.com>
> ---
> src/PVE/LXC.pm | 8 ++++++--
> src/PVE/LXC/Config.pm | 6 ++++++
> 2 files changed, 12 insertions(+), 2 deletions(-)
>
>
applied, with Fiona's and Daniels R-b and T-b trailers, thanks!
More information about the pve-devel
mailing list