aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount_nfs
Commit message (Collapse)AuthorAgeFilesLines
* Improve man page for AmazonEFS mounts.Rick Macklem2020-12-011-2/+11
| | | | | | | | | | | | | | | | PR#250770 was actually just a misunderstanding of what NFS mount options are needed for AmazonEFS mounts. This patch attempts to clarify the manpage to clarify this. This is a content change. PR: 250770 Reviewed by: bcr MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D27430 Notes: svn path=/head/; revision=368268
* Document the new "tls" NFS mount option.Rick Macklem2020-11-201-1/+8
| | | | | | | | | | | | | | | | | | Recent commits to head have added support for NFS over TLS to the FreeBSD kernel. To enable use of this for an NFS mount, the "tls" mount_nfs option has been added. Once the IETF has assigned an RFC number, I will replace "NNNN" with the number. This is a content change. Reviewed by: gbe Differential Revision: https://reviews.freebsd.org/D26262 Notes: svn path=/head/; revision=367913
* mount_nfs(8): document alternate form of the gssname optionGordon Bergling2020-07-171-1/+10
| | | | | | | | | | | | PR: 238506 Submitted by: Greg Veldman <freebsd at gregv dot net> Reviewed by: 0mp, bcr (mentor) Approved by: bcr (mentor) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D25667 Notes: svn path=/head/; revision=363288
* Align the buffer to the alignment of the structure we expect.Gleb Smirnoff2020-03-051-1/+1
| | | | | | | Submitted by: Slawa Olhovchenkov <slw zxy.spb.ru> Notes: svn path=/head/; revision=358686
* When a machine boots the NFS mounting script is executed afterGleb Smirnoff2020-03-041-1/+61
| | | | | | | | | | | | | | | | interfaces are configured, but for many interfaces (e.g. all Intel) ifconfig causes link renegotiation, so the first attempt to mount NFS always fails. After that mount_nfs sleeps for 30 seconds, while only a couple seconds are actually required for interface to get up. Instead of sleeping, do select(2) on routing socket and check if some interface became UP and in this case retry immediately. Reviewed by: rmacklem Differential Revision: https://reviews.freebsd.org/D23934 Notes: svn path=/head/; revision=358655
* Fix mount_nfs to recognize the NFSv4 specific errors returned by nmount(2).Rick Macklem2019-12-261-5/+11
| | | | | | | | | | | | | | | | | | | When mount_nfs calls nmount(2), certain NFSv4 specific errors such as NFSERR_MINORVERMISMATCH can be returned. Without this patch, 10021 is reported as an unknown error. This is not particulcarily serious, but make it difficult for sysadmins to figure out why the mount attempt is failing. This patch uses nfsv4_errstr.h to convert 10021 and similar to error strings that can be printed out. A positive side effect of this patch is the removal of a reference to sys/nfsclient/nfs.h, which should no longer be used, since it is part of the old NFS client. This patch should only affect reporting of failed mount attempts and not the semantics of NFS mount attempts. Notes: svn path=/head/; revision=356101
* Update the mount_nfs.8 man page to include NFSv4.2.Rick Macklem2019-12-141-11/+16
| | | | | | | | | | | r355677 added NFSv4.2 support to the NFS client. This patch updates the mount_nfs.8 man page to reflect that. It also clarifies that the "nolockd" option does not apply to NFSv4 mounts. This is a content change. Notes: svn path=/head/; revision=355758
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-1/+3
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Fix mount_nfs so that it doesn't create mounttab entries for NFSv4 mounts.Rick Macklem2017-05-081-1/+1
| | | | | | | | | | | | | The NFSv4 protocol doesn't use the Mount protocol, so it doesn't make sense to add an entry for an NFSv4 mount to /var/db/mounttab. Also, r308871 modified umount so that it doesn't remove any entry created by mount_nfs. Reported on freebsd-current@. Reported by: clbuisson@orange.fr MFC after: 2 weeks Notes: svn path=/head/; revision=317931
* Document the "oneopenown" option added by r316792.Rick Macklem2017-04-131-1/+9
| | | | | | | | | This is a content change. MFC after: 2 weeks Notes: svn path=/head/; revision=316793
* Remove support for long gone oldnfs.Brooks Davis2017-04-071-22/+7
| | | | | | | | | | | | | | | The code was calling nmount with an fstype of everything in the program name after the last '_'. This was there to support mount_nfs being linked to mount_oldnfs. Support for the link was removed in 2015 with r281691. Reviewed by: rmacklem Obtained from: CheriBSD Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D10301 Notes: svn path=/head/; revision=316619
* sbin: normalize paths using SRCTOP-relative paths or :H when possibleEnji Cooper2017-03-041-2/+2
| | | | | | | | | | This simplifies make logic/output MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314656
* Renumber copyright clause 4Warner Losh2017-02-282-2/+2
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Add missing history sections to a number of storage related man pagesAllan Jude2016-09-161-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gmultipath.8: Add HISTORY Adjust sentences with bad phrases picked up by igor ggatec.8: Add HISTORY ggated.8: Add HISTORY ggatel.8: Add HISTORY Seperate out sentence as advised by igor. hastctl.8: Add HISTORY hastd.8: Add HISTORY Fix sentence highlighted by igor. iscontrol.8: Add HISTORY mdmfs.8: Add HISTORY Address issues raised by igor mount_nfs.8: Add HISTORY Not sure where mount_nfs first showed up, but the verison used in the BSD's originates from 4.4BSD according to CSRG archive. Though commercial offerings from Sun and others covers older systems, eg https://groups.google.com/forum/#!topic/net.unix-wizards/lMe7aQikqJI nandfs.8: Add HISTORY Adjust sentence in description to address bad phrase highlighted by igor. nvmecontrol.8: Add HISTORY PR: 212491 PR: 212498 PR: 212499 PR: 212500 PR: 212501 PR: 212502 PR: 212505 PR: 212508 PR: 212540 PR: 212543 PR: 212546 Submitted by: Sevan Janiyan <venture37@geeklan.co.uk> Notes: svn path=/head/; revision=305861
* MFHGlen Barber2016-04-161-1/+1
|\ | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=298092
| * Cleanup unnecessary semicolons from utilities we all love.Pedro F. Giffuni2016-04-151-1/+1
| | | | | | | | Notes: svn path=/head/; revision=298089
* | Explicitly add more files to the 'runtime' package.Glen Barber2016-02-091-0/+1
|/ | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295450
* mount_nfs: Be more clear on nmount(2) error with errmsg unsetConrad Meyer2015-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 Notes: svn path=/head/; revision=285804
* Since the case where secflavor < 0 indicates the security flavor isRick Macklem2015-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 Notes: svn path=/head/; revision=285260
* Add META_MODE support.Simon J. Gerraty2015-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 Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-272-10/+1
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge from head@274682Simon J. Gerraty2014-11-193-297/+162
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=274683
| * | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | Merge headSimon J. Gerraty2014-04-281-1/+14
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * \ \ Merge from headSimon J. Gerraty2013-09-051-1/+25
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * \ \ \ sync from headSimon J. Gerraty2013-04-121-7/+6
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=249429
| * | | | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | | | Sync with HEAD.David E. O'Brien2013-02-081-1/+13
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | | | Remove some oldnfs remnants.Edward Tomasz Napierala2015-04-182-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Differential Revision: https://reviews.freebsd.org/D2287 Reviewed by: rmacklem@ Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=281691
* | | | | | | mdoc: remove EOL whitespace.Joel Dahl2014-12-291-1/+1
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=276360
* | | | | | Build mount_nfs(8) with WARNS=6.Edward Tomasz Napierala2014-10-312-49/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: rmacklem@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=273896
* | | | | | Remove two functions unused after r273848. Would be nice if clangEdward Tomasz Napierala2014-10-301-29/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | or at least scan-build yelled about it. MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=273861
* | | | | | Note that the "timeout" nfs option is in tenths of a second.Edward Tomasz Napierala2014-10-301-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=273851
* | | | | | Add support for "timeo", "actimeo", "noac", and "proto" optionsEdward Tomasz Napierala2014-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 Notes: svn path=/head/; revision=273849
* | | | | | Get rid of obsolete code in mount_nfs(8).Edward Tomasz Napierala2014-10-301-217/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: rmacklem@ Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=273848
* | | | | | Provide -o vers= support for mount_nfs.Bjoern A. Zeeb2014-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 Notes: svn path=/head/; revision=269583
* | | | | Document the noncontigwr NFS mount option.Rick Macklem2013-12-081-1/+14
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a content change. MFC after: 3 weeks Notes: svn path=/head/; revision=259089
* | | | Document the "gssname" and "allgssname" mount options added by theRick Macklem2013-07-091-1/+25
| |_|/ |/| | | | | | | | | | | | | | | | | | | | host-based initiator credential patches. This is a content change. Notes: svn path=/head/; revision=253051
* | | GC unused variables. Prefer NULL over 0 for pointers.Jung-uk Kim2013-03-051-7/+6
| |/ |/| | | | | Notes: svn path=/head/; revision=247856
* | Document the new NFS mount options added by r244042.Rick Macklem2012-12-091-1/+13
|/ | | | | | | This is a content change. Notes: svn path=/head/; revision=244055
* Add a timeout on positive name cache entries in the NFS client. That is,John Baldwin2012-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 Notes: svn path=/head/; revision=230547
* Change checkpath() to not exit on error. This is a prerequisite forJaakko Heinonen2012-01-161-1/+2
| | | | | | | | | | fixing the mount(8) "failok" option. PR: 163668 Reviewed by: Garrett Cooper, delphij (previous version) Notes: svn path=/head/; revision=230226
* Spelling fixes for sbin/Ulrich Spörlein2012-01-071-1/+1
| | | | Notes: svn path=/head/; revision=229778
* Finish making 'wcommitsize' an NFS client mount option.John Baldwin2011-11-142-0/+11
| | | | | | | | Reviewed by: rmacklem MFC after: 1 week Notes: svn path=/head/; revision=227507
* Implemented a mount option "nocto" that disables cache coherencyRuslan Ermilov2011-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) Notes: svn path=/head/; revision=221436