[PATCH 2/2] mount: -T OTHERTAB support
Isaac Dunham
ibid.ag at gmail.com
Sun Mar 15 01:07:02 UTC 2015
On Wed, Mar 11, 2015 at 08:07:02PM +0100, Denys Vlasenko wrote:
> On Wed, Mar 11, 2015 at 7:14 PM, Isaac Dunham <ibid.ag at gmail.com> wrote:
> > On Wed, Mar 11, 2015 at 04:11:27PM +0100, Denys Vlasenko wrote:
> >> Applied, thanks!
> >
> > Ok, I have two questions (one about the chanes to the patch, one general C)
> >
> > First, why did the documentation for -w get turned off?
>
> Because -w is a default.
>
> When user types "mount --help"?
>
> When he needs to use an option, but forgot which letter it is.
>
> But user would never want to use -w. It's the default.
OK, thanks for the explanation (and thanks to Laurent for answering
the other question).
Now, should support for -T should be folded into fstab support
(so if you can parse fstab, -T works)?
Also, I'm thinking about adding "mount -m"; this is an extension over
util-linux mount, which would create the mountpoint if it doesn't
exist.
I've asked on the util-linux list about whether that option is spoken
for, and if there's any interest in seeing it in util-linux.
I'd been thinking about using -d or -p at first, but I see that FreeBSD
already uses -d for what we call -f (dry-run/fake), and -p to dump
the current mount status in the form it would be included in fstab;
with util-linux this is done via
findmnt -l -o SOURCE,TARGET,FSTYPE,OPTIONS
Of course, FreeBSD mount could be argued to be hopelessly incompatible:
freebsd util-linux
-d -f (dryrun/fake)
-f (none: force remount,ro)
-F -T
(none) -i (use internal)
-L (none: mount only "late" filesystems)
-l (none: mount "late" filesystems)
(none) -L (mount by label)
(none) -l (show labels)
-p (none: use findmnt)
-u -o remount,...
I note that the option x-mount.mkdir is equivalent to the option I've
been contemplating, and might be more useful...
Thanks,
Isaac Dunham
More information about the busybox
mailing list