aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount_nfs
Commit message (Collapse)AuthorAgeFilesLines
* Sync usage string and man page. Correct use of .Nm. Spelling. RemovePhilippe Charnier1998-07-062-23/+19
| | | | | | | unused #includes. Notes: svn path=/head/; revision=37427
* Fix bogon in man page. "-o conn" actually turns off NFSMNT_NOCONN as it isJoseph Koshy1998-06-291-2/+2
| | | | | | | | | | | a "negative" option. This makes it equivalent to /not/ specifying "-c". The compile time default is /not/ to have the NFSMNT_NOCONN flag set, so "-o conn" should never be needed---truly a deprecated option :-). PR: 6905. Notes: svn path=/head/; revision=37253
* Support changing the attribute cache limits per-mount. We don't havePeter Wemm1998-05-192-2/+38
| | | | | | | | many option letters left, I used long names only (like the previous port= option) Notes: svn path=/head/; revision=36178
* Mention the 2GB NFS v2 filesize limit.Peter Wemm1998-05-011-2/+3
| | | | | | | | PR: 6335 Submitted by: tom@sdf.com Notes: svn path=/head/; revision=35583
* Don't define KERNEL before including <nfs/nfs.h>. It is no longerBruce Evans1998-02-011-3/+1
| | | | | | | | necessary. This fixes warnings about missing forward declarations for structs in kernel-only prototypes. Notes: svn path=/head/; revision=32999
* Removed definition of _NEW_VFSCONF. The new vfsconf interface is nowBruce Evans1998-01-201-1/+0
| | | | | | | the default. Notes: svn path=/head/; revision=32645
* style(9) correctionsWarner Losh1997-12-261-3/+5
| | | | | | | Submitted by: bde Notes: svn path=/head/; revision=32008
* Be extra paranoid about trusting the length returned by gethostbyaddr.Warner Losh1997-12-241-3/+3
| | | | | | | Submitted by: Julian Assange Notes: svn path=/head/; revision=31955
* Introduce a -N option that disables the use of reserved ports, nowJoerg Wunsch1997-10-192-5/+14
| | | | | | | | | | that -P is on by default. Remove do-nothing code in the -P case (but leave the option itself for backward compatibility). PR: bin/4500 Notes: svn path=/head/; revision=30580
* Allow the 'async' mount flag.Doug Rabson1997-06-031-1/+2
| | | | Notes: svn path=/head/; revision=26417
* Test both the NFS and MOUNT protocols for v3 support before allowing a v3Doug Rabson1997-05-011-1/+61
| | | | | | | | | | mount. It is possible to have v3 MOUNT but only v2 NFS, for instance for a custom user-mode server like CFS. Reviewed by: "Louis A. Mamakos" <louie@TransSys.COM> Notes: svn path=/head/; revision=25348
* Use v3 protocol by default if it is supported by the server. Allow theDoug Rabson1997-04-182-11/+49
| | | | | | | | | user to force v2 protocol even if the server supports v3. Obtained from: NetBSD but with a slightly different implementation Notes: svn path=/head/; revision=25004
* Make "-o noxxx" work properly, allowing the user to clean e.g. the resvportDoug Rabson1997-04-021-22/+47
| | | | | | | flag (which is now set by default). Notes: svn path=/head/; revision=24546
* Make mount_nfs use reserved ports by default.. Mounts already useGuido van Rooij1997-04-011-2/+2
| | | | | | | | | | | a reserved port, so why not the nfs rpc's themselves? With user allowed mounts, this perhaps needs a closer look, but on the other hand, a user could already specify the flag. If normal users should not be able to use resserved ports, the kernel should check for the flag at mount time. Notes: svn path=/head/; revision=24495
* 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
* Merge from Lite2 (use new getvfsbyname() and mount(2) interface)Peter Wemm1997-03-113-46/+37
| | | | Notes: svn path=/head/; revision=23680
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-222-2/+2
| | | | Notes: svn path=/head/; revision=22990
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-142-2/+2
| | | | | | | | | | | 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
* Mention the historic mount options, as `deprecated'.Joerg Wunsch1996-10-221-0/+49
| | | | | | | Closes PR # docs/735. Notes: svn path=/head/; revision=19112
* Don't use __dead or __pure in user code. They were obfuscationsBruce Evans1996-09-141-3/+3
| | | | | | | | | 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
* Get rid of the last vestiges of the old MOUNT_* constants in theGarrett Wollman1996-05-131-2/+9
| | | | | | | | | | | | 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
* #include <kerberosIV/des.h> -> #include <des.h>Mark Murray1996-02-111-1/+1
| | | | Notes: svn path=/head/; revision=14024
* Fix a bunch of spelling errors.Mike Pritchard1996-01-291-2/+2
| | | | Notes: svn path=/head/; revision=13720
* Changes to support version 3 of the NFS protocol.Doug Rabson1995-06-272-97/+259
| | | | | | | | | | | | | | | | | | | | | The version 2 support has been tested (client+server) against FreeBSD-2.0, IRIX 5.3 and FreeBSD-current (using a loopback mount). The version 2 support is stable AFAIK. The version 3 support has been tested with a loopback mount and minimally against an IRIX 5.3 server. It needs more testing and may have problems. I have patched amd to support the new variable length filehandles although it will still only use version 2 of the protocol. Before booting a kernel with these changes, nfs clients will need to at least build and install /usr/sbin/mount_nfs. Servers will need to build and install /usr/sbin/mountd. NFS diskless support is untested. Obtained from: Rick Macklem <rick@snowhite.cis.uoguelph.ca> Notes: svn path=/head/; revision=9336
* Added -o port option. Use specified port number for NFS requests. The defaultKarl Strickland1995-06-142-1/+13
| | | | | | | is to query the portmapper for the NFS port. This is useful for CFS users. Notes: svn path=/head/; revision=9230
* Fixed bug where UDP was required to mount a TCP NFS filesystem.David Greenman1995-05-241-3/+7
| | | | | | | Submitted by: Ken Hornstein, Sept.'94 Notes: svn path=/head/; revision=8723
* Add support for kerberised NQNFS.Doug Rabson1995-01-302-3/+12
| | | | | | | | | Reviewed by: Submitted by: Obtained from: Notes: svn path=/head/; revision=6043
* Kill used "error" variable.David Greenman1995-01-271-1/+0
| | | | Notes: svn path=/head/; revision=5967
* Fixed bogus error reporting when the failure is RPC related ("AddressDavid Greenman1995-01-271-1/+2
| | | | | | | already in use", instead of "Permission denied"). Notes: svn path=/head/; revision=5966
* Correct a litle typo in an error message: PRC -> RPC.Andreas Schulz1994-11-261-1/+1
| | | | Notes: svn path=/head/; revision=4822
* Add support for filesystem-specific `-o' options, and re-implement theGarrett Wollman1994-11-011-2/+65
| | | | | | | | | | | | | | | | | | | 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/+11
| | | | Notes: svn path=/head/; revision=2999
* Fixed a bug where mount_nfs would core-dump if used with IP# directly.Poul-Henning Kamp1994-09-151-9/+10
| | | | | | | | | | Also moved some KERBEROS related stuff inside the #ifdef. Should we always try to do a reverse lookup (IP#->name) ? It has som merit, but is probably against the tradition or huh ? Notes: svn path=/head/; revision=2776
* Delete obsolete references to librpc.a.Garrett Wollman1994-08-081-3/+0
| | | | Notes: svn path=/head/; revision=1923
* 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-263-0/+787
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin. Notes: svn path=/head/; revision=1558