summaryrefslogtreecommitdiffstats
path: root/sbin/mount_nfs
Commit message (Collapse)AuthorAgeFilesLines
* MFHgjb2016-04-161-1/+1
|\ | | | | | | Sponsored by: The FreeBSD Foundation
| * Cleanup unnecessary semicolons from utilities we all love.pfg2016-04-151-1/+1
| |
* | Explicitly add more files to the 'runtime' package.gjb2016-02-091-0/+1
|/ | | | Sponsored by: The FreeBSD Foundation
* mount_nfs: Be more clear on nmount(2) error with errmsg unsetcem2015-07-221-1/+2
| | | | | | | | Differential Revision: https://reviews.freebsd.org/D3147 Reviewed by: rmacklem Approved by: markj (mentor) MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* Since the case where secflavor < 0 indicates the security flavor isrmacklem2015-07-071-2/+2
| | | | | | | | | | | | to be negotiated, it could be a Kerberized mount. As such, filling in the "principal" argument using the canonized host name makes sense. If it is negotiated as AUTH_SYS, the "principal" argument is meaningless but harmless. Requested by: masato@itc.naist.jp Tested by: masato@itc.naist.jp PR: 201073 MFC after: 1 month
* Add META_MODE support.sjg2015-06-131-0/+21
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-272-10/+1
| |\ | |/ |/|
| * Merge from head@274682sjg2014-11-193-298/+163
| |\
| * | Updated dependenciessjg2014-05-161-1/+0
| | |
| * | Updated dependenciessjg2014-05-101-0/+2
| | |
| * | Merge headsjg2014-04-281-1/+14
| |\ \
| * \ \ Merge from headsjg2013-09-051-1/+25
| |\ \ \
| * \ \ \ sync from headsjg2013-04-121-7/+6
| |\ \ \ \
| * | | | | Updated dependenciessjg2013-03-111-0/+1
| | | | | |
| * | | | | Updated dependenciessjg2013-02-161-2/+0
| | | | | |
| * | | | | Sync with HEAD.obrien2013-02-081-1/+13
| |\ \ \ \ \
| * | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | | Remove some oldnfs remnants.trasz2015-04-182-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Differential Revision: https://reviews.freebsd.org/D2287 Reviewed by: rmacklem@ Sponsored by: The FreeBSD Foundation
* | | | | | | mdoc: remove EOL whitespace.joel2014-12-291-1/+1
| |_|_|_|_|/ |/| | | | |
* | | | | | Build mount_nfs(8) with WARNS=6.trasz2014-10-312-50/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: rmacklem@ MFC after: 1 month Sponsored by: The FreeBSD Foundation
* | | | | | Remove two functions unused after r273848. Would be nice if clangtrasz2014-10-301-29/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | or at least scan-build yelled about it. MFC after: 1 month Sponsored by: The FreeBSD Foundation
* | | | | | Note that the "timeout" nfs option is in tenths of a second.trasz2014-10-301-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* | | | | | Add support for "timeo", "actimeo", "noac", and "proto" optionstrasz2014-10-302-1/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to mount_nfs(8). They are implemented on Linux, OS X, and Solaris, and thus can be expected to appear in automounter maps. Reviewed by: rmacklem@ MFC after: 1 month Sponsored by: The FreeBSD Foundation
* | | | | | Get rid of obsolete code in mount_nfs(8).trasz2014-10-301-217/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: rmacklem@ Sponsored by: The FreeBSD Foundation
* | | | | | Provide -o vers= support for mount_nfs.bz2014-08-052-1/+55
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Our mount_nfs does use -o nfsv<2|3|4> or -2 or -3 to specify the version. OSX (these days), Solaris, and Linux use -o vers=<2,3,4>. With the upcoming autofs support we can make a lot of (entrerprisy) setups getting mount options from LDAP just work by providing -o vers= compatibility. PR: 192379 Reviewed by: wblock, bjk (man page), rmacklem, emaste MFC after: 3 days Sponsored by: DARPA,AFRL
* | | | | Document the noncontigwr NFS mount option.rmacklem2013-12-081-1/+14
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | This is a content change. MFC after: 3 weeks
* | | | Document the "gssname" and "allgssname" mount options added by thermacklem2013-07-091-1/+25
| |_|/ |/| | | | | | | | | | | host-based initiator credential patches. This is a content change.
* | | GC unused variables. Prefer NULL over 0 for pointers.jkim2013-03-051-7/+6
| |/ |/|
* | Document the new NFS mount options added by r244042.rmacklem2012-12-091-1/+13
|/ | | | This is a content change.
* Add a timeout on positive name cache entries in the NFS client. That is,jhb2012-01-251-0/+4
| | | | | | | | | | | we will only trust a positive name cache entry for a specified amount of time before falling back to a LOOKUP RPC, even if the ctime for the file handle matches the cached copy in the name cache entry. The timeout is configured via a new 'nametimeo' mount option and defaults to 60 seconds. It may be set to zero to disable positive name caching entirely. Reviewed by: rmacklem MFC after: 1 week
* Change checkpath() to not exit on error. This is a prerequisite forjh2012-01-161-1/+2
| | | | | | | fixing the mount(8) "failok" option. PR: 163668 Reviewed by: Garrett Cooper, delphij (previous version)
* Spelling fixes for sbin/uqs2012-01-071-1/+1
|
* Finish making 'wcommitsize' an NFS client mount option.jhb2011-11-142-0/+11
| | | | | Reviewed by: rmacklem MFC after: 1 week
* Implemented a mount option "nocto" that disables cache coherencyru2011-05-041-1/+12
| | | | | | | | checking at open time. It may improve performance for read-only NFS mounts. Use deliberately. MFC after: 1 week Reviewed by: rmacklem, jhb (earlier version)
* Fix the Makefile for mount_nfs so that it creates armacklem2011-05-011-1/+1
| | | | link for mount_oldnfs.8 instead of mount_newnfs.8.
* Update man pages related to the change in default NFS clientrmacklem2011-04-281-4/+8
| | | | | | applied by r221124. I also deleted references to idmapd, since that daemon no longer exists. This is a content change.
* This patch changes head so that the default NFS client is now the newrmacklem2011-04-272-9/+5
| | | | | | | | | | | | | | NFS client (which I guess is no longer experimental). The fstype "newnfs" is now "nfs" and the regular/old NFS client is now fstype "oldnfs". Although mounts via fstype "nfs" will usually work without userland changes, an updated mount_nfs(8) binary is needed for kernels built with "options NFSCL" but not "options NFSCLIENT". Updated mount_nfs(8) and mount(8) binaries are needed to do mounts for fstype "oldnfs". The GENERIC kernel configs have been changed to use options NFSCL and NFSD (the new client and server) instead of NFSCLIENT and NFSSERVER. For kernels being used on diskless NFS root systems, "options NFSCL" must be in the kernel config. Discussed on freebsd-fs@.
* Fix deprecated warning about -L which said -i was deprecated.simon2010-12-261-1/+1
| | | | MFC after: 3 days
* Correct a typo.jh2010-10-271-1/+1
| | | | | | PR: 151321 Submitted by: Simon Walton MFC after: 3 days
* Shut the compiler up; initializes the sotype variable to zero inkevlo2010-09-041-0/+1
| | | | | | nfs_tryproto(). Reviewed by: rmacklem
* Introduce '[ipaddr]:path' notation.ume2010-02-041-6/+16
| | | | | | | | | | | Since the existing implementation searches ':' backward, a path which includes ':' could not be mounted. You can now mount such path by enclosing an IP address by '[]'. Though we should change to search ':' forward, it will break 'ipv6addr:path' which is currently working. So, it still searches ':' backward, at least for now. MFC after: 2 weeks
* static'ify function prototypes and convert K&R to ANSI.delphij2010-02-031-24/+23
| | | | MFC after: 1 month
* Document the negnametimeo option for mount_nfs as implementedrmacklem2010-01-211-0/+4
| | | | | | by r202767. This is a content change. MFC after: 2 weeks
* Fix parsing of mount options specified with -o in case an option withjh2009-10-261-5/+5
| | | | | | | | | value is preceded by an option without value (for example -o option1,option2=value). Options must be separated before searching for '='. Also compare pnextopt explicitly against NULL. PR: bin/134069 Approved by: trasz (mentor)
* Change the default transport protocol for use by the Mount protocolrmacklem2009-09-171-1/+1
| | | | | | | | | | | from UDP to TCP, so that it is consistent with TCP for NFS, which became the default at r176198. Without this change, doing an NFS mount against a server that only supports UDP would result in an unusable mount point if a transport protocol option wasn't specified for the mount. Approved by: kib (mentor) MFC after: 3 days
* Delete the descriptions of the gssname and allgssname optionss fromrmacklem2009-07-291-42/+1
| | | | | | | mount_nfs.8 since these options are not implemented in FreeBSD8. This is content change for the man page. Approved by: re (kensmith), kib (mentor)
* Don't use sys/nfs/rpcv2.h - it is part of the old kernel RPC implementationdfr2009-06-241-12/+12
| | | | and will be removed.
* Code for parsing nmount options in kernel was mergedrodrigc2009-06-011-1/+1
| | | | | | to stable/7 branch in r190315. So only resort to fallback_mount() could which passes struct nfs_args to kernel in kernel versions less than 702100.
* Add support for the experimental nfs client to mount_nfs. Thermacklem2009-05-273-7/+172
| | | | | | | | | | | | experimental client is used when the fstype is "newnfs" or the "nfsv4" option is specified. It includes the addition of the option: gssname - to specify a client side initiator host based principal name which is specific to NFSv4. It also includes a change to mount.c, so that it knows about mount_newnfs, but not mount_nfs4. Reviewed by: dfr Approved by: kib (mentor)
OpenPOWER on IntegriCloud