History log of /freebsd-9.3-release/sbin/mount_std/mount_std.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 267654 19-Jun-2014 gjb

Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 225736 22-Sep-2011 kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by: re (implicit)


# 162262 13-Sep-2006 charnier

Reduce the number of errors under WARNS=6


# 147242 10-Jun-2005 delphij

Use MOPT_END in favor of MOPT_NULL, which better describes the purporse
of the macro.


# 146853 01-Jun-2005 delphij

Add a handy macro to represent null mount option, MOPT_NULL, and make
use of the macro in sbin/mount*'s, by replacing:

mopts[] = {
MOPT_STDOPTS,
{ NULL }
}

With:
mopts[] = {
MOPT_STDOPTS,
MOPT_NULL
}

This change will help to reduce the situation that we don't explicitly
initialize "struct mntopt"'s. It should not contribute to any
functional/logical changes as far as I can tell.


# 128073 09-Apr-2004 markm

Remove advertising clause from University of California Regent's license,
per letter dated July 22, 1999.

Approved by: core, imp


# 106477 05-Nov-2002 jhb

Take sizeof() the right string for fspath's iovec. The old string was the
same size so this doesn't fix a bug, but it makes it cleaner.


# 102231 21-Aug-2002 trhodes

s/filesystem/file system/g as discussed on -developers


# 101270 03-Aug-2002 mux

Now that the kernel is able to load modules itself,
remove all the code which was trying to do so.
This code was nasty in several ways, it was hiding
the kernel bug where the kernel was unable to properly
load a module, and it was quitting if it wasn't able
to load the module. The consequence is that an ABI
breakage of the vfsconf API would have broken *every*
mount utility.


# 96063 05-May-2002 mux

Fix the fallback to mount(2) with RELENG_4 kernels and -CURRENT
utilities by catching SIGSYS.

Submitted by: bde


# 95957 02-May-2002 mux

Swap the order of mount and nmount calls. We now call nmount
first, since all the consumers of mount_std in the tree have
been converted to nmount.


# 94094 07-Apr-2002 mux

Add code to try the nmount(2) syscall when mount(2) failed with
EOPNOTSUPP. This will make things less painful when I will commit
the conversion of devfs, fdescfs and pseudofs to nmount.

Reviewed by: phk


# 92882 21-Mar-2002 imp

o __P removed
o main prototype removed


# 78732 24-Jun-2001 dd

Include missing header files which define functions for which gcc has
builtins (e.g., exit, strcmp).


# 52055 09-Oct-1999 phk

mount* fixes from Martin Blapp <mb@imp.ch>:

Made mount more userfriendly (bad slashes are now filtered out)
and we remove in mount_nfs trailing slashes if there are any.

Fixed mount_xxx binarys to resolve with realpath(3)
the mountpoint.

Translate the deprecated nfs-syntax with '@' to ':' .
The ':' syntax has now precedence, but '@' still works.
Notify the user that the '@' syntax should not be used.

PR: 7846
PR: 13692
Submitted by: Martin Blapp <mb@imp.ch>
Reviewed by: phk


# 50476 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 37658 15-Jul-1998 charnier

Correct use of .Nm. Remove unused #includes.


# 24359 29-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


# 23679 11-Mar-1997 peter

Update to compile under Lite2


# 22990 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


# 21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


# 18286 14-Sep-1996 bde

Don't use __dead or __pure in user code. They were obfuscations
for gcc >= 2.5 and no-ops for gcc >= 2.6. Converted to use __dead2
or __pure2 where it wasn't already done, except in math.h where use
of __pure was mostly wrong.


# 15774 14-May-1996 wollman

Accept mount(8)'s calling convention of passing just the filesystem type
as argv[0].


# 15770 13-May-1996 wollman

Get rid of the last vestiges of the old MOUNT_* constants in the
mount_* programs. While we're at it, collapse the four now-identical
mount programs for devfs, fdesc, kernfs, and procfs into links to
a new mount_std(8) which can mount any really generic filesystem
such as these when called with the appropriate argv[0].

Also, convert the mount programs to use sysexits.h.