-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
storage: Don't allow mounting over other mounted filesystems #19388
storage: Don't allow mounting over other mounted filesystems #19388
Conversation
Oh, nice coverage report, very accurate! |
360ec0b
to
0731117
Compare
0731117
to
60b44b5
Compare
60b44b5
to
49dc2a8
Compare
if (u.usage == 'mounted' && u.location == location) { | ||
if (is_top) { | ||
u.actions = get_actions(_("unmount")); | ||
u.set_noauto = false; |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
963df5d
to
b2b52bd
Compare
ddd3daa
to
f2fde63
Compare
64a9fe0
to
8fd9cae
Compare
6b3322b
to
e3e3b90
Compare
e3e3b90
to
f2b455b
Compare
@@ -828,7 +872,8 @@ export function get_active_usage(client, path, top_action, child_action) { | |||
return usage; | |||
} | |||
|
|||
let usage = get_usage(path, 0); | |||
let usage = []; | |||
get_usage(usage, path, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't say I am super big fan of the indirection of filling in usage
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Immutable data structures are overrated. :-)
And unmount nested filesystems during teardown.
Just janking out the disk will leave debris behind in /dev.
We still want to check whether it is unique etc.
f2b455b
to
0407a6e
Compare
} else if (n_processes > 0) { | ||
return _("Related processes will be forcefully stopped."); | ||
} else if (n_services > 0) { | ||
return _("Related services will be forcefully stopped."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These 4 added lines are not executed by any test. Details
Demo: https://www.youtube.com/watch?v=tnf3Wl--Duw