-
Notifications
You must be signed in to change notification settings - Fork 0
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
Per-filesystem default mount options #1
Comments
Alright, at first let's think whether we should use /etc/mount/defaults.conf or something better (e.g. /etc/fstab?). Is there an ability to extend /etc/fstab? What would it look like if there is. |
A bit from my
I guess, we can add special character for
Default rules should influence all the following records, but new default rules should override them. In the example above |
Should we override them? Why not to merge? Pros:
Cons:
|
Override is only for default rules (with same P.S. Well, I'm not sure about compiled-in defaults. Should we override them or merge... I guess, it is better to override because it gives more control. |
And yes, in my opinion, changing the fstab syntax in such a way is not a very nice idea. It breaks backward compatibility, and I find this inadmissible. |
In fact, it is admissible. |
Oh, now I see your point. OK, why not to do something like this:
That means that we merge these dicts while either mounting /dev/sda2 or calling "mount -t ext4 /dev/sdb1 /mnt/external". And I'm still not very satisfied with this syntax. |
|
Example:
Suppose you also had called "mount -t vfat /dev/sdb1 /mnt/external". According to the config above your devices would have been mounted like this:
What do you think? |
Oh, I see. This will give less control. F.ex. if you want to create another section of |
OK, I find your arguments conclusive. Now, what's the main scenarios for using this feature? |
Well, after some time of thinking I can remember more practical uses.
options for
options for
All these options would benefit from setting in defaults. I think, we could even do more sophisticated rules by adding device masks. F.ex.:
But I can't imagine for now how much effort it will take. |
LOR thread
Got an answer from Karel, can work now!
On Sat, Oct 19, 2013 at 08:03:29AM +0400, Aleksey Midenkov wrote:
If you really need a generic (on device independent solution), then I
don't see a better way than improve libmount for read something
like /etc/mount/.conf. The problem is that such feature will
not be usable for non-libmount applications.
I understand the pain for removable media, but for regular disks you
can use /etc/fstab, right?
I understand.
The text was updated successfully, but these errors were encountered: