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

cmd/snap-update-ns: allow detaches to propagate #14545

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zyga
Copy link
Contributor

@zyga zyga commented Sep 27, 2024

When snap-update-ns chooses not to reuse a mount entry it attempts to unmount it by detaching the mount entry. Before that is done the mount entry used to be switch to private propagation, so that the unmount operation was isolated.

Disable this logic so that unmounts (and detaches) propagate normally. The mount namespace of the snap is mostly switched to slaved propagation, with the sole exception of /media or /run/media, which uses bidirectional propagation by design.

This patch is experimental and is not ready for being merged yet.

Jira: https://warthogs.atlassian.net/browse/SNAPDENG-31645

When snap-update-ns chooses not to reuse a mount entry it attempts to unmount
it by detaching the mount entry. Before that is done the mount entry used to be
switch to private propagation, so that the unmount operation was isolated.

Disable this logic so that unmounts (and detaches) propagate normally. The
mount namespace of the snap is mostly switched to slaved propagation, with the
sole exception of /media or /run/media, which uses bidirectional propagation by
design.

This patch is experimental and is not ready for being merged yet.

Jira: https://warthogs.atlassian.net/browse/SNAPDENG-31645

Signed-off-by: Zygmunt Krynicki <[email protected]>
@zyga zyga force-pushed the fix/allow-detaches-to-propagate-SNAPDENG-31645 branch from 66d7f1b to 096a8f9 Compare September 27, 2024 11:22
Copy link

codecov bot commented Sep 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.87%. Comparing base (ac897ee) to head (096a8f9).
Report is 32 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #14545      +/-   ##
==========================================
+ Coverage   78.85%   78.87%   +0.01%     
==========================================
  Files        1079     1080       +1     
  Lines      145615   145817     +202     
==========================================
+ Hits       114828   115009     +181     
- Misses      23601    23616      +15     
- Partials     7186     7192       +6     
Flag Coverage Δ
unittests 78.87% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

1 participant