sys-utils/mount.8: Clarify 'defaults' and separate kernel/userspace options
Get series with b4
b4 am [email protected]Versions newest first
- v2 Latest8 patches 3 repliesIn review
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | sys-utils/fstab.5: Remove basic filesystem-independent optionssys-utils/ sys-utils/ | +16 | 0 replies | |
| 2/8 | sys-utils/fstab.5: Remove 'defaults' from examplessys-utils/ | +4 | 0 replies | |
| 3/8 | sys-utils/mount.8: Document 'defaults' as a no-opsys-utils/ | +1 | 0 replies | |
| 4/8 | sys-utils/mount.8: Simplify nousersys-utils/ | +1 | 0 replies | |
| 5/8 | sys-utils/mount.8: Drop systemd paragraph from x-* entrysys-utils/ | +7 | 1 reply | |
| 6/8 | sys-utils/mount.8: Clarify x-mount.mkdir deprecationsys-utils/ | +3 | 0 replies | |
| 7/8 | sys-utils/mount.8: Split filesystem-independent options into kernel and userspace subsectionssys-utils/ | +62 | 0 replies | |
| 8/8 | sys-utils/mount.8: Document libmount defaultssys-utils/ | +5 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/8] sys-utils/mount.8: Clarify 'defaults' and separate kernel/userspace options
Here's a reroll of May's v1 [1]. Larger changes since v1:
* Split into multiple patches, something like Karel had suggested [2].
* Punt to mount(2) for defaults for filesystem-independent kernel options, instead of adding local "(default)" marks. This is is also something like Karl had suggested in [2].
* Replaced the broken "synonym for auto" 'defaults' definition which I'd floated in v1 with a line from Karel's earlier suggestion [3].
* Added two examples to fstab(5) based on Karel's initial suggestions
[4] and subsequent discussion.
* Added a few copy-edit patches.
After the v1 discussion, I think something should happen to (no)auto as well:
On Tue, May 16, 2017 at 02:41:27PM +0200, Karel Zak wrote [2]:
Quoted 12 lines · W. Trevor King
Quoted 11 lines
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
The "default" is interpreted as "auto" by "mount -a".
This last line means "defaults" is effectively a synonym for "auto" in fstab, an presumably "auto" would always be preferred (because it more
More precisely, mount -a cares about "noauto" only, everything else is "auto".
Is that really true? I think:
Quoted 7 lines
Quoted 1 line
* ‘noauto,auto’ means the same thing as a bare ‘auto’.
Unfortunately no.
It's strange, but "mount -a" search for "noauto" and do not evaluate the options as flags. The libmount follows the original mount(8) with this behavior. I'll try to fix it.
It's not clear to me whether Karel intends to clarify the mount(8) documentation on this point or if he intends to adjust the current libmount behavior, so I've left that language alone in this series. If the intention is to document 'auto' as another no-op (matching the current implementation), I'm happy to submit an additional patch.
Cheers,
Trevor
[1]: http://marc.info/?l=util-linux-ng&m=149451719727754&w=2
Message-Id: <cee125bdea0faac3b4c9d7e856425fe9106756e7.1494510090.git.wking@tremily.us>
Subject: [PATCH] WIP: mount.8: Split out fstab-specific mount options
Date: Thu, 11 May 2017 06:48:54 -0700
[2]: http://marc.info/?l=util-linux-ng&m=149493849402047&w=2
Message-ID: <[email protected]>
Subject: Re: [PATCH] WIP: mount.8: Split out fstab-specific mount options
Date: Tue, 16 May 2017 14:41:27 +0200
[3]: http://marc.info/?l=util-linux-ng&m=149450548823490&w=2
Message-ID: <[email protected]>
Subject: Re: libmount: Is the 'defaults' option intentionally a no-op?
Date: Thu, 11 May 2017 14:24:42 +0200
[4]: http://marc.info/?l=util-linux-ng&m=149457573010153&w=2
Message-ID: <[email protected]>
Subject: Re: [PATCH] WIP: mount.8: Split out fstab-specific mount options
Date: Fri, 12 May 2017 09:54:51 +0200W. Trevor King (8):
sys-utils/fstab.5: Remove basic filesystem-independent options sys-utils/fstab.5: Remove 'defaults' from examples sys-utils/mount.8: Document 'defaults' as a no-op sys-utils/mount.8: Simplify nouser
sys-utils/mount.8: Drop systemd paragraph from x-* entry sys-utils/mount.8: Clarify x-mount.mkdir deprecation sys-utils/mount.8: Split filesystem-independent options into kernel
and userspace subsections
sys-utils/mount.8: Document libmount defaults
sys-utils/fstab.5 | 38 +++------------ sys-utils/mount.8 | 137 +++++++++++++++++++++++++++++++----------------------- 2 files changed, 84 insertions(+), 91 deletions(-)
Signature · 1 line
2.1.0.60.g85f0837