]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
I have added a new option -p to the mount command. This was
authorJordan K. Hubbard <jkh@FreeBSD.org>
Sun, 21 Jul 1996 23:34:04 +0000 (23:34 +0000)
committerJordan K. Hubbard <jkh@FreeBSD.org>
Sun, 21 Jul 1996 23:34:04 +0000 (23:34 +0000)
commita257a45ecda24aa005137216eebc9d64a6bab335
tree731b8d701580f8a15625ca9abd05be5d1dbfda84
parent31a7f355c6be88bcd00255e6fc28ecd84ceda3f1
I have added a new option -p to the mount command. This was
inspired by SunOS version of mount which uses option -p to
indicate that the mount information should be printed in fstab
format.
This is a neat way to create a new fstab file to use later when
one has modified the mount points or mount options or added or
removed mount some mount points. You just type

mount -p > /etc/fstab.new

and there is your new fstab file ready to be used though you
will of course have to add any necessary noauto flags manually.

[Committers note:  This also seems to do the wrong thing for AMD
 mounts, but in the more average case this is a nifty feature nonetheless
 and one can always edit the bogus entries out]

Submitted-By: Jukka Ukkonen <jau@jau.csc.fi>
sbin/mount/mount.8
sbin/mount/mount.c
sbin/mount_ifs/mount.8
sbin/mount_ifs/mount.c