Skip to content

gofer: Ensure mount flags are applied for bind mounts #11866

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

Merged
merged 1 commit into from
Jul 1, 2025

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Jun 27, 2025

gofer: Ensure mount flags are applied for bind mounts

The initial mount syscall for a new bind mount ignores provided flags,
inheriting the underlying mount's options. To apply custom flags, a subsequent
mount call with MS_BIND|MS_REMOUNT is required. This change addresses
that behavior.

@copybara-service copybara-service bot added the exported Issue was exported automatically label Jun 27, 2025
@copybara-service copybara-service bot force-pushed the test/cl776454950 branch 5 times, most recently from 4dce25a to 5b5bfbc Compare June 30, 2025 19:39
@copybara-service copybara-service bot changed the title gofer: apply mount flags gofer: Ensure mount flags are applied for bind mounts Jun 30, 2025
@copybara-service copybara-service bot force-pushed the test/cl776454950 branch 2 times, most recently from 140cdad to 9b8a6d0 Compare June 30, 2025 23:18
The initial mount syscall for a new bind mount ignores provided flags,
inheriting the underlying mount's options. To apply custom flags, a subsequent
mount call with `MS_BIND|MS_REMOUNT` is required. This change addresses
that behavior.

PiperOrigin-RevId: 777778148
@copybara-service copybara-service bot merged commit 8a1a040 into master Jul 1, 2025
0 of 2 checks passed
@copybara-service copybara-service bot deleted the test/cl776454950 branch July 1, 2025 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exported Issue was exported automatically
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant