]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
overlay: workaround libmount failure to remount,ro
authorAmir Goldstein <amir73il@gmail.com>
Tue, 3 Jun 2025 10:07:40 +0000 (12:07 +0200)
committerZorro Lang <zlang@kernel.org>
Fri, 6 Jun 2025 11:45:46 +0000 (19:45 +0800)
commite6fc42f16c77ea40090b7168a7195ea12967b012
tree84d66f759c5e05b1190bd9183c5d7d57af833a5e
parent2f635d075e104e69d58dc48c88697c64181a22b6
overlay: workaround libmount failure to remount,ro

libmount >= v1.39 calls several unneeded fsconfig() calls to reconfigure
lowerdir/upperdir when user requests only -o remount,ro.

Those calls fail because overlayfs does not allow making any config
changes with new mount api, besides MS_RDONLY.

We workaround this problem with --options-mode ignore.

Reported-by: André Almeida <andrealmeid@igalia.com>
Suggested-by: Karel Zak <kzak@redhat.com>
Link: https://lore.kernel.org/linux-fsdevel/20250521-ovl_ro-v1-1-2350b1493d94@igalia.com/
Link: https://lore.kernel.org/fstests/CAJfpegtJ3SDKmC80B4AfWiC3JmtWdW2+78fRZVtsuhe-wSRPvg@mail.gmail.com/
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/overlay
tests/overlay/035