Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

really disable fallback mounting to RO #312

Merged
merged 1 commit into from
Jan 3, 2025
Merged

really disable fallback mounting to RO #312

merged 1 commit into from
Jan 3, 2025

Conversation

WanzenBug
Copy link
Member

@WanzenBug WanzenBug commented Dec 31, 2024

Passing the "rw" option is not enough. Careful reading of the manpage, verified by tests and reading of the source code of util-linux reveals that disabling the RO fallback only happens when you pass the "-w" flag.

Then, also fix "ro" mounts in case of XFS, as XFS attempts to write even if passed the "ro" flag without the "norecovery" option.

Fixes: 6deb565 ("disable fallback to RO mounts for RW volumes")

@WanzenBug WanzenBug force-pushed the disable-ro-fallback branch 2 times, most recently from b48401c to ac32d87 Compare January 2, 2025 08:05
@WanzenBug WanzenBug requested a review from rck January 2, 2025 11:06
Passing the "rw" option is not enough. Careful reading of the manpage, verified
by tests and reading of the source code of util-linux reveals that disabling
the RO fallback only happens when you pass the "-w" flag.

Then, also fix "ro" mounts in case of XFS, as XFS attempts to write even if
passed the "ro" flag without the "norecovery" option.

Fixes: 6deb565 ("disable fallback to RO mounts for RW volumes")
Signed-off-by: Moritz Wanzenböck <moritz.wanzenboeck@linbit.com>
@WanzenBug WanzenBug force-pushed the disable-ro-fallback branch from ac32d87 to 2b86f8c Compare January 2, 2025 13:21
Copy link
Member

@rck rck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rck rck merged commit 1b1d7bf into master Jan 3, 2025
5 checks passed
@rck rck deleted the disable-ro-fallback branch January 3, 2025 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants