cvs commit: src/sbin/mount mount.c
Craig Rodrigues
rodrigc at crodrigues.org
Thu Mar 2 18:52:58 PST 2006
On Fri, Mar 03, 2006 at 02:46:15AM +0000, Giorgos Keramidas wrote:
> keramida 2006-03-03 02:46:15 UTC
>
> FreeBSD src repository (doc committer)
>
> Modified files:
> sbin/mount mount.c
> Log:
> When there are no mount options, an implicit "rw" should be printed in
> the output of ``mount -p''.
>
> Approved by: rodrigc
Just as additional background, the putfsent() in mount.c which
displays an fstab via mount -p is lacking in one serious way...
it only converts the numeric mount flags to strings.
It is possible to specify mount options in /etc/fstab,
or via mount -o which are strings that are passed down into
the kernel via nmount(). These strings *may* or *may not* be
converted to numerical mount flags, and maybe be stored
in the kernel as strings, depending on the filesystem.
This makes filesystem mount option parsing such a pain.
--
Craig Rodrigues
rodrigc at crodrigues.org
More information about the cvs-src
mailing list