aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount_portalfs
Commit message (Collapse)AuthorAgeFilesLines
* o __P removedWarner Losh2002-03-212-14/+14
| | | | | | | o main prototype removed Notes: svn path=/head/; revision=92882
* Default to WARNS=2.David E. O'Brien2001-12-041-0/+2
| | | | | | | | | Binary builds that cannot handle this must explicitly set WARNS=0. Reviewed by: mike Notes: svn path=/head/; revision=87325
* Hopefully improve control message passing over Unix domain sockets.David Malone2001-10-041-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) Allow the sending of more than one control message at a time over a unix domain socket. This should cover the PR 29499. 2) This requires that unp_{ex,in}ternalize and unp_scan understand mbufs with more than one control message at a time. 3) Internalize and externalize used to work on the mbuf in-place. This made life quite complicated and the code for sizeof(int) < sizeof(file *) could end up doing the wrong thing. The patch always create a new mbuf/cluster now. This resulted in the change of the prototype for the domain externalise function. 4) You can now send SCM_TIMESTAMP messages. 5) Always use CMSG_DATA(cm) to determine the start where the data in unp_{ex,in}ternalize. It was using ((struct cmsghdr *)cm + 1) in some places, which gives the wrong alignment on the alpha. (NetBSD made this fix some time ago). This results in an ABI change for discriptor passing and creds passing on the alpha. (Probably on the IA64 and Spare ports too). 6) Fix userland programs to use CMSG_* macros too. 7) Be more careful about freeing mbufs containing (file *)s. This is made possible by the prototype change of externalise. PR: 29499 MFC after: 6 weeks Notes: svn path=/head/; revision=84472
* Actually rename FDESC, PORTAL, UMAP and UNION file systems.Ruslan Ermilov2001-05-241-5/+5
| | | | | | | OK'ed by: bp Notes: svn path=/head/; revision=77133
* Rename (after a repo-copy) some mount(8) programs:Ruslan Ermilov2001-05-233-7/+7
| | | | | | | | | | | mount_fdesc -> mount_fdescfs mount_null -> mount_nullfs mount_portal -> mount_portalfs mount_umap -> mount_umapfs mount_union -> mount_unionfs Notes: svn path=/head/; revision=77042
* - FDESC, FIFO, NULL, PORTAL, PROC, UMAP and UNION fileRuslan Ermilov2001-05-232-2/+2
| | | | | | | | | | | | | | | | | | systems were repo-copied from sys/miscfs to sys/fs. - Renamed the following file systems and their modules: fdesc -> fdescfs, portal -> portalfs, union -> unionfs. - Renamed corresponding kernel options: FDESC -> FDESCFS, PORTAL -> PORTALFS, UNION -> UNIONFS. - Install header files for the above file systems. - Removed bogus -I${.CURDIR}/../../sys CFLAGS from userland Makefiles. Notes: svn path=/head/; revision=77031
* - Backout botched attempt to introduce MANSECT feature.Ruslan Ermilov2001-03-261-0/+1
| | | | | | | - MAN[1-9] -> MAN. Notes: svn path=/head/; revision=74815
* Set the default manual section for sbin/ to 8.Ruslan Ermilov2001-03-201-1/+0
| | | | Notes: svn path=/head/; revision=74531
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-1/+1
| | | | Notes: svn path=/head/; revision=68960
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-011-3/+6
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57668
* 10 X's for mktemp(). This seems to be free from race conditions.Kris Kennaway2000-01-101-1/+1
| | | | Notes: svn path=/head/; revision=55744
* mount* fixes from Martin Blapp <mb@imp.ch>:Poul-Henning Kamp1999-10-091-2/+4
| | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=52055
* $Id$ -> $FreeBSD$Peter Wemm1999-08-2812-12/+12
| | | | Notes: svn path=/head/; revision=50476
* Bad reference getsockname(8) -> getsockname(2)Chris Costello1999-08-141-2/+2
| | | | Notes: svn path=/head/; revision=49803
* Typo police. 'Acknowledgement' is spelled correctly so it was left untouched.Doug White1999-08-061-2/+2
| | | | | | | | PR: docs/12986 Submitted by: Seth <seth@freebie.dp.ny.frb.org> Notes: svn path=/head/; revision=49448
* Add pt_tcplisten.c functionality, fix a few minor bugsMatthew Dillon1998-12-157-11/+234
| | | | | | | | PR: kern/8793, misc/8796, kern/8797, kern/8798, kern/8050, kern/6758 Submitted by: Duncan Barclay <dmlb@ragnet.demon.co.uk> Notes: svn path=/head/; revision=41828
* sendmsg() didn't like the MSG_EOR flag and returned an error. Removing theMatthew Dillon1998-12-121-2/+2
| | | | | | | flag makes portal tcp operation work. Notes: svn path=/head/; revision=41701
* Fixed printf format errors.Bruce Evans1998-08-021-2/+2
| | | | Notes: svn path=/head/; revision=38023
* Correct use of .Nm. Spelling. Add rcsid and remove unused #includes.Philippe Charnier1998-07-068-42/+48
| | | | Notes: svn path=/head/; revision=37429
* Removed definition of _NEW_VFSCONF. The new vfsconf interface is nowBruce Evans1998-01-201-2/+1
| | | | | | | the default. Notes: svn path=/head/; revision=32645
* change s_port to ntohs(s_port) for printf in DEBUG.Darren Reed1998-01-111-2/+2
| | | | Notes: svn path=/head/; revision=32428
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-2/+2
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24359
* Fix small race window when creating portal socket.Warner Losh1997-03-241-1/+4
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=24187
* Merge from Lite2 (use new getvfsbyname() and mount(2) interface)Peter Wemm1997-03-115-32/+32
| | | | Notes: svn path=/head/; revision=23680
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-2211-11/+11
| | | | Notes: svn path=/head/; revision=22990
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-1411-11/+11
| | | | | | | | | | | 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. Notes: svn path=/head/; revision=21673
* Don't use __dead or __pure in user code. They were obfuscationsBruce Evans1996-09-141-2/+2
| | | | | | | | | 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. Notes: svn path=/head/; revision=18286
* Use the .Bx macro where appropriate.Mike Pritchard1996-08-231-1/+2
| | | | Notes: svn path=/head/; revision=17797
* Get rid of the last vestiges of the old MOUNT_* constants in theGarrett Wollman1996-05-131-9/+14
| | | | | | | | | | | | 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. Notes: svn path=/head/; revision=15770
* Remove trailing whitespace.Rodney W. Grimes1995-05-302-3/+3
| | | | Notes: svn path=/head/; revision=8871
* Bugfixes :Gary Palmer1995-04-193-9/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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 Notes: svn path=/head/; revision=7936
* Use POSIX.2 regular expressions, get rid of libcompat.Garrett Wollman1995-02-212-20/+26
| | | | Notes: svn path=/head/; revision=6590
* And another absolute path -I :-<Poul-Henning Kamp1994-11-201-1/+1
| | | | Notes: svn path=/head/; revision=4705
* Add support for filesystem-specific `-o' options, and re-implement theGarrett Wollman1994-11-011-1/+1
| | | | | | | | | | | | | | | | | | | 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!) Notes: svn path=/head/; revision=4065
* Automatically load NFS and a bevy of other filesystems.Garrett Wollman1994-09-221-1/+10
| | | | Notes: svn path=/head/; revision=2999
* bugfix: change gidset[] type from int to gid_tAndrey A. Chernov1994-09-191-2/+2
| | | | Notes: svn path=/head/; revision=2891
* Convert to our man installation style. Also fixed long-standing bugGarrett Wollman1994-08-051-1/+1
| | | | | | | | in `fastboot'/`fasthalt' in which the interpreter would hang around after `reboot' or `halt' is run, causing an irritating ``Killed'' message. Notes: svn path=/head/; revision=1855
* BSD 4.4 Lite sbin SourcesRodney W. Grimes1994-05-2612-0/+1465
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin. Notes: svn path=/head/; revision=1558