History log of /freebsd-9.3-release/usr.sbin/mount_portalfs/mount_portalfs.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)


# 201387 02-Jan-2010 ed

ANSIfy some more tools in usr.sbin/.

Most of these tools build with WARNS=6, except for their use of K&R
function declarations.


# 194217 14-Jun-2009 des

Add volatile to sig_atomic_t where it was missing.

MFC after: 1 week


# 166157 20-Jan-2007 rodrigc

Clean up compilation warnings. Set WARNS=6 in Makefile.

PR: 71659
Submitted by: Dan Lukes <dan obluda cz>


# 143400 11-Mar-2005 dds

Ensure the configuration file is given with an absolute file path.


# 133249 07-Aug-2004 imp

Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived software
(with permission of addtional copyright holders where appropriate)


# 129862 30-May-2004 stefanf

The file pt_tcplisten.c lacks the $FreeBSD$ keyword. Use the opportunity to
change all files to __FBSDID.

Approved by: das (mentor)


# 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.


# 92882 21-Mar-2002 imp

o __P removed
o main prototype removed


# 77133 24-May-2001 ru

Actually rename FDESC, PORTAL, UMAP and UNION file systems.

OK'ed by: bp


# 77042 23-May-2001 ru

Rename (after a repo-copy) some mount(8) programs:

mount_fdesc -> mount_fdescfs
mount_null -> mount_nullfs
mount_portal -> mount_portalfs
mount_umap -> mount_umapfs
mount_union -> mount_unionfs


# 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$


# 41828 15-Dec-1998 dillon

Add pt_tcplisten.c functionality, fix a few minor bugs

PR: kern/8793, misc/8796, kern/8797, kern/8798, kern/8050, kern/6758
Submitted by: Duncan Barclay <dmlb@ragnet.demon.co.uk>


# 37429 06-Jul-1998 charnier

Correct use of .Nm. Spelling. Add rcsid and 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.


# 24187 24-Mar-1997 imp

Fix small race window when creating portal socket.
Obtained from: OpenBSD


# 23680 11-Mar-1997 peter

Merge from Lite2 (use new getvfsbyname() and mount(2) interface)


# 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.


# 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.


# 8871 30-May-1995 rgrimes

Remove trailing whitespace.


# 7936 19-Apr-1995 gpalmer

Bugfixes :

- in mount_portal.c: included catching of SIGHUP to get portald to
re-read the config file.

- in mount_portal.c: in SIGCHLD handler the return values checked from
waitpid were wrong. Note. this routine was written correclty according
to the manual page for 4.4BSD, but waitpid does not exhibit this
behaviour. It is not returning 0 when WNOHANG is specified. I havent
checked this properly.

- in mount_portal.c: initialized the fdset for the select properly.

- in mount_portal.c: corrected poor casting in the select.

- in mount_portal.c: changed a break; to exit (0); so that the
children die after doing the hard work, this stops the select: bad
file descriptor messages.

- in pt_file.c: the kernel passes kernel style open flags to the
portal code which aren't compatible with "normal" O_ flags. I have
adjusted these in pt_file.c. In general I think the portal fs code
and portal_cred structure need changing to pass to the portald
the right style of flags _and_ the permissions.

- in pt_tcp.c: a few mistakes in typing of the socket structures,
getservbyname returns the port number as an int but sockaddr wants
the port number as an u_short.

- in pt_tcp.c: someone wrote this on a VAX/Sun whatever and forget
about byte ordering!! I've included a few htons about the place.

- in all the above I have sprinkled a few more debugging printf's.

Submitted by: "Duncan McL Barclay" <dmlb@ohm.york.ac.uk


# 4065 01-Nov-1994 wollman

Add support for filesystem-specific `-o' options, and re-implement the
most common cd9660 and nfs options like God intended them. (It is now
possible to say

mount -o ro,soft,bg,intr there:/foo/bar /foo/bar

again.) This whole getmntopt() business is an incredible botch;
it never should have been anything more than a wrapper around
getsubopt(3). Because if the way the current hackaround is implemented,
options which take arguments (like the old `rsize' and `wsize') are still
unavailable, and must be accessed the new, broken way.

(It's unimaginable how Berkeley managed to screw up one of the few things
about NFS that Sun actually got right to begin with!)


# 2999 22-Sep-1994 wollman

Automatically load NFS and a bevy of other filesystems.


# 1558 26-May-1994 rgrimes

BSD 4.4 Lite sbin Sources

Note: XNSrouted and routed NOT imported here, they shall be imported with
usr.sbin.