-
Notifications
You must be signed in to change notification settings - Fork 145
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
mount: allow mount with options behind permissions #800
Conversation
Allow mounting with permissions like “rw,other,options” that are needed for tmpfs mounting.
I'll keep the current code. There is no gain in that change and we lost readability. |
Hmm... Current code does not allow mounting with any options other than ro and rw Thoughts? |
Sorry @tschettervictor I read it wrong. Reopening for testing. |
tested good. This does fix the #504 issue with tmp filesystems. |
My comment to this change is that the user will be forced to always use ro or rw as the first option, is that how it should be? If so let's add that in documentation. |
You bring a valid point. You are right. We could either do docs, or do a small tweak to make sure rw or ro is always included in the options. |
do we need to unmerge this one and make that change?? Force them to use rw or ro? or is documentation enough? |
I've just submitted PR #801 documenting the behaviour. |
@bmac2 I'll say documentation is enough thinking in the release. But not sure about if it's preferable by the community to not be force to start wit But if we think if border scenarios, not sure if anyone is using swap mounts, in that case, that will never work as the option is |
That said in my previous comment, why we don't make the second option Victor said: check that the basic options are included, in this case as per fstab(5): "rw": read/write device That way, we bring a wide solution rather than an different limitation to the subcommand. What do you think? |
fine by me. @tschettervictor you good with coding that up for this release? |
Simple enough. Give me an hour or so to implement it. |
Allow mounting with permissions like “rw,other,options” that are needed for tmpfs mounting.