svn commit: r317983 - in stable/11/sys/fs: nfs nfsclient

2017-05-08 Thread Rick Macklem
Author: rmacklem Date: Mon May 8 21:29:29 2017 New Revision: 317983 URL: https://svnweb.freebsd.org/changeset/base/317983 Log: MFC: r317345 Make the NFSv4 client to use a write open for reading if allowed by the server. An NFSv4 server has the option of allowing a Read to be done using

svn commit: r317978 - stable/10/sys/fs/nfsclient

2017-05-08 Thread Rick Macklem
Author: rmacklem Date: Mon May 8 20:30:30 2017 New Revision: 317978 URL: https://svnweb.freebsd.org/changeset/base/317978 Log: MFC: r317305 Fix the NFSv4.1/pNFS client return layout on close. The "return layout on close" case in the pNFS client was badly broken. Fortunately, extant

svn commit: r317977 - stable/11/sys/fs/nfsclient

2017-05-08 Thread Rick Macklem
Author: rmacklem Date: Mon May 8 20:21:10 2017 New Revision: 317977 URL: https://svnweb.freebsd.org/changeset/base/317977 Log: MFC: r317305 Fix the NFSv4.1/pNFS client return layout on close. The "return layout on close" case in the pNFS client was badly broken. Fortunately, extant

svn commit: r317975 - stable/10/sys/fs/nfsclient

2017-05-08 Thread Rick Macklem
Author: rmacklem Date: Mon May 8 19:57:43 2017 New Revision: 317975 URL: https://svnweb.freebsd.org/changeset/base/317975 Log: MFC: r317296 Fix some krpc leaks for the NFSv4.1/pNFS client. The NFSv4.1/pNFS client wasn't doing a newnfs_disconnect() call for the connection to the Data

svn commit: r317973 - stable/11/sys/fs/nfsclient

2017-05-08 Thread Rick Macklem
Author: rmacklem Date: Mon May 8 19:50:35 2017 New Revision: 317973 URL: https://svnweb.freebsd.org/changeset/base/317973 Log: MFC: r317296 Fix some krpc leaks for the NFSv4.1/pNFS client. The NFSv4.1/pNFS client wasn't doing a newnfs_disconnect() call for the connection to the Data

svn commit: r317931 - head/sbin/mount_nfs

2017-05-07 Thread Rick Macklem
Author: rmacklem Date: Mon May 8 00:45:05 2017 New Revision: 317931 URL: https://svnweb.freebsd.org/changeset/base/317931 Log: Fix mount_nfs so that it doesn't create mounttab entries for NFSv4 mounts. The NFSv4 protocol doesn't use the Mount protocol, so it doesn't make sense to add an

svn commit: r317930 - stable/10/sys/fs/nfs

2017-05-07 Thread Rick Macklem
Author: rmacklem Date: Sun May 7 22:18:05 2017 New Revision: 317930 URL: https://svnweb.freebsd.org/changeset/base/317930 Log: MFC: r317276 Don't set ND_NOMOREDATA for a failed Setattr operation (NFSv4). The NFSv4 Setattr operation always has reply data even when it fails, so don't

svn commit: r317929 - stable/11/sys/fs/nfs

2017-05-07 Thread Rick Macklem
Author: rmacklem Date: Sun May 7 22:10:55 2017 New Revision: 317929 URL: https://svnweb.freebsd.org/changeset/base/317929 Log: MFC: r317276 Don't set ND_NOMOREDATA for a failed Setattr operation (NFSv4). The NFSv4 Setattr operation always has reply data even when it fails, so don't

svn commit: r317927 - in stable/10/sys/fs: nfs nfsclient

2017-05-07 Thread Rick Macklem
Author: rmacklem Date: Sun May 7 21:57:46 2017 New Revision: 317927 URL: https://svnweb.freebsd.org/changeset/base/317927 Log: MFC: r317275, r317344 Don't create a backchannel for a DS connection. An NFSv4.1 client connection to a Data Server (DS) should not have a backchannel. This

svn commit: r317926 - in stable/11/sys/fs: nfs nfsclient

2017-05-07 Thread Rick Macklem
Author: rmacklem Date: Sun May 7 21:42:02 2017 New Revision: 317926 URL: https://svnweb.freebsd.org/changeset/base/317926 Log: MFC: r317275, r317344 Don't create a backchannel for a DS connection. An NFSv4.1 client connection to a Data Server (DS) should not have a backchannel. This

svn commit: r317925 - stable/10/sys/fs/nfsclient

2017-05-07 Thread Rick Macklem
Author: rmacklem Date: Sun May 7 21:32:55 2017 New Revision: 317925 URL: https://svnweb.freebsd.org/changeset/base/317925 Log: MFC: r317272 Add checks for failed operations to the NFSv4 client function nfscl_mtofh(). The nfscl_mtofh() function didn't check for failed operations and, as

svn commit: r317924 - stable/11/sys/fs/nfsclient

2017-05-07 Thread Rick Macklem
Author: rmacklem Date: Sun May 7 21:22:47 2017 New Revision: 317924 URL: https://svnweb.freebsd.org/changeset/base/317924 Log: MFC: r317272 Add checks for failed operations to the NFSv4 client function nfscl_mtofh(). The nfscl_mtofh() function didn't check for failed operations and, as

svn commit: r317922 - stable/10/usr.sbin/nfsuserd

2017-05-07 Thread Rick Macklem
Author: rmacklem Date: Sun May 7 21:06:23 2017 New Revision: 317922 URL: https://svnweb.freebsd.org/changeset/base/317922 Log: MFC: r317270 Get rid of bogus statement in the nfsuserd.8 man page. The nfsuserd.8 man page stated that a usertimeout of 0 would disable the cache timeout.

svn commit: r317921 - stable/11/usr.sbin/nfsuserd

2017-05-07 Thread Rick Macklem
Author: rmacklem Date: Sun May 7 20:57:13 2017 New Revision: 317921 URL: https://svnweb.freebsd.org/changeset/base/317921 Log: MFC: r317270 Get rid of bogus statement in the nfsuserd.8 man page. The nfsuserd.8 man page stated that a usertimeout of 0 would disable the cache timeout.

svn commit: r317920 - stable/10/usr.sbin/nfsuserd

2017-05-07 Thread Rick Macklem
Author: rmacklem Date: Sun May 7 20:50:32 2017 New Revision: 317920 URL: https://svnweb.freebsd.org/changeset/base/317920 Log: MFC: r317350 Fix the default uid/gid values in nfsuserd.c This patch sets the default uid/gid values for "nobody" and "nogroup" to the values in the password

svn commit: r317919 - stable/11/usr.sbin/nfsuserd

2017-05-07 Thread Rick Macklem
Author: rmacklem Date: Sun May 7 20:42:01 2017 New Revision: 317919 URL: https://svnweb.freebsd.org/changeset/base/317919 Log: MFC: r317350 Fix the default uid/gid values in nfsuserd.c This patch sets the default uid/gid values for "nobody" and "nogroup" to the values in the password

svn commit: r317918 - stable/9/sys/fs/nfsserver

2017-05-07 Thread Rick Macklem
Author: rmacklem Date: Sun May 7 20:32:07 2017 New Revision: 317918 URL: https://svnweb.freebsd.org/changeset/base/317918 Log: MFC: r317236 Fix the setting of atime for Linux client NFSv4 mounts. The FreeBSD NFSv4 server did not set the attribute bit for TimeAccess in the reply to an

svn commit: r317917 - in stable/10/sys: fs/nfs sys

2017-05-07 Thread Rick Macklem
Author: rmacklem Date: Sun May 7 20:21:59 2017 New Revision: 317917 URL: https://svnweb.freebsd.org/changeset/base/317917 Log: MFC: r317269 Set default uid/gid to nobody/nogroup for NFSv4 mapping. The default uid/gid for NFSv4 are set by the nfsuserd(8) daemon. However, they were 0

svn commit: r317916 - in stable/11/sys: fs/nfs sys

2017-05-07 Thread Rick Macklem
Author: rmacklem Date: Sun May 7 20:11:58 2017 New Revision: 317916 URL: https://svnweb.freebsd.org/changeset/base/317916 Log: MFC: r317269 Set default uid/gid to nobody/nogroup for NFSv4 mapping. The default uid/gid for NFSv4 are set by the nfsuserd(8) daemon. However, they were 0

svn commit: r317914 - stable/10/sys/fs/nfsserver

2017-05-07 Thread Rick Macklem
Author: rmacklem Date: Sun May 7 19:57:45 2017 New Revision: 317914 URL: https://svnweb.freebsd.org/changeset/base/317914 Log: MFC: r317236 Fix the setting of atime for Linux client NFSv4 mounts. The FreeBSD NFSv4 server did not set the attribute bit for TimeAccess in the reply to an

svn commit: r317911 - stable/11/sys/fs/nfsserver

2017-05-07 Thread Rick Macklem
Author: rmacklem Date: Sun May 7 19:47:50 2017 New Revision: 317911 URL: https://svnweb.freebsd.org/changeset/base/317911 Log: MFC: r317236 Fix the setting of atime for Linux client NFSv4 mounts. The FreeBSD NFSv4 server did not set the attribute bit for TimeAccess in the reply to an

svn commit: r317906 - head/sys/rpc

2017-05-07 Thread Rick Macklem
Author: rmacklem Date: Sun May 7 12:12:45 2017 New Revision: 317906 URL: https://svnweb.freebsd.org/changeset/base/317906 Log: Fix the client side krpc from doing TCP reconnects for ERESTART from sosend(). When sosend() replies ERESTART in the client side krpc, it indicates that the RPC

svn commit: r317579 - in stable/10/sys/fs: nfs nfsclient

2017-04-28 Thread Rick Macklem
Author: rmacklem Date: Sat Apr 29 01:04:39 2017 New Revision: 317579 URL: https://svnweb.freebsd.org/changeset/base/317579 Log: MFC: r316829 Remove unused "cred" argument to ncl_flush(). The "cred" argument of ncl_flush() is unused and it was confusing to have the code passing in NULL

svn commit: r317577 - in stable/11/sys/fs: nfs nfsclient

2017-04-28 Thread Rick Macklem
Author: rmacklem Date: Sat Apr 29 00:46:51 2017 New Revision: 317577 URL: https://svnweb.freebsd.org/changeset/base/317577 Log: MFC: r316829 Remove unused "cred" argument to ncl_flush(). The "cred" argument of ncl_flush() is unused and it was confusing to have the code passing in NULL

svn commit: r317576 - head/sys/fs/nfsclient

2017-04-28 Thread Rick Macklem
Author: rmacklem Date: Sat Apr 29 00:34:53 2017 New Revision: 317576 URL: https://svnweb.freebsd.org/changeset/base/317576 Log: Modify the NFSv4.1/pNFS client to ask for a maximum length of layout. The code specified the length of a layout as INT64_MAX instead of UINT64_MAX. This could

svn commit: r317526 - stable/10/sbin/mount_nfs

2017-04-27 Thread Rick Macklem
Author: rmacklem Date: Thu Apr 27 21:45:50 2017 New Revision: 317526 URL: https://svnweb.freebsd.org/changeset/base/317526 Log: MFC: r316793 Document the "oneopenown" option added by r316792. This is a content change. Modified: stable/10/sbin/mount_nfs/mount_nfs.8 Directory

svn commit: r317525 - in stable/10/sys: fs/nfs fs/nfsclient nfsclient

2017-04-27 Thread Rick Macklem
Author: rmacklem Date: Thu Apr 27 21:37:39 2017 New Revision: 317525 URL: https://svnweb.freebsd.org/changeset/base/317525 Log: MFC: r316792 Add an NFSv4.1 mount option for "use one openowner". Some NFSv4.1 servers such as AmazonEFS can only support a small fixed number of

svn commit: r317524 - stable/10/sys/fs/nfsclient

2017-04-27 Thread Rick Macklem
Author: rmacklem Date: Thu Apr 27 21:27:20 2017 New Revision: 317524 URL: https://svnweb.freebsd.org/changeset/base/317524 Log: MFC: r316782 Add call to svcpool_close() for the NFSv4 callback pool (svcpool_nfscbd). A function called svcpool_close() was added to the server side krpc by

svn commit: r317521 - stable/11/sbin/mount_nfs

2017-04-27 Thread Rick Macklem
Author: rmacklem Date: Thu Apr 27 20:21:29 2017 New Revision: 317521 URL: https://svnweb.freebsd.org/changeset/base/317521 Log: MFC: r316793 Document the "oneopenown" option added by r316792. This is a content change. Modified: stable/11/sbin/mount_nfs/mount_nfs.8 Directory

svn commit: r317520 - in stable/11/sys: fs/nfs fs/nfsclient nfsclient

2017-04-27 Thread Rick Macklem
Author: rmacklem Date: Thu Apr 27 20:14:54 2017 New Revision: 317520 URL: https://svnweb.freebsd.org/changeset/base/317520 Log: MFC: r316792 Add an NFSv4.1 mount option for "use one openowner". Some NFSv4.1 servers such as AmazonEFS can only support a small fixed number of

svn commit: r317519 - stable/11/sys/fs/nfsclient

2017-04-27 Thread Rick Macklem
Author: rmacklem Date: Thu Apr 27 20:07:14 2017 New Revision: 317519 URL: https://svnweb.freebsd.org/changeset/base/317519 Log: MFC: r316782 Add call to svcpool_close() for the NFSv4 callback pool (svcpool_nfscbd). A function called svcpool_close() was added to the server side krpc by

svn commit: r317477 - stable/9/sys/fs/nfsclient

2017-04-26 Thread Rick Macklem
Author: rmacklem Date: Wed Apr 26 23:32:57 2017 New Revision: 317477 URL: https://svnweb.freebsd.org/changeset/base/317477 Log: MFC: r316667 Fix the NFSv4 client hndling of a stale write verifier in the Commit operation. When the NFSv4 client Commit operation encountered a stale write

svn commit: r317476 - stable/10/sys/fs/nfsclient

2017-04-26 Thread Rick Macklem
Author: rmacklem Date: Wed Apr 26 23:24:05 2017 New Revision: 317476 URL: https://svnweb.freebsd.org/changeset/base/317476 Log: MFC: r316745 Fix the NFS client for "text file modified, process killed" mmap'd case. When an mmap'd text file is written and then executed immediately

svn commit: r317475 - stable/10/sys/fs/nfsclient

2017-04-26 Thread Rick Macklem
Author: rmacklem Date: Wed Apr 26 23:01:49 2017 New Revision: 317475 URL: https://svnweb.freebsd.org/changeset/base/317475 Log: MFC: r316719 Don't throw away Open state when a NFSv4.1 client recovery fails. If the ExchangeID/CreateSession operations done by an NFSv4.1 client after the

svn commit: r317474 - stable/10/sys/fs/nfsclient

2017-04-26 Thread Rick Macklem
Author: rmacklem Date: Wed Apr 26 22:53:29 2017 New Revision: 317474 URL: https://svnweb.freebsd.org/changeset/base/317474 Log: MFC: r316717 During a server crash recovery, fix the NFSv4.1 client for a NFSERR_BADSESSION during recovery. If the NFSv4.1 client gets a NFSv4.1

svn commit: r317473 - stable/10/sys/rpc

2017-04-26 Thread Rick Macklem
Author: rmacklem Date: Wed Apr 26 22:40:08 2017 New Revision: 317473 URL: https://svnweb.freebsd.org/changeset/base/317473 Log: MFC: r316694 Fix a crash during unmount of an NFSv4.1 mount. Larry Rosenman reported a crash on freebsd-current@ which was caused by a premature release of

svn commit: r317471 - stable/11/sys/fs/nfsclient

2017-04-26 Thread Rick Macklem
Author: rmacklem Date: Wed Apr 26 22:31:43 2017 New Revision: 317471 URL: https://svnweb.freebsd.org/changeset/base/317471 Log: MFC: r316745 Fix the NFS client for "text file modified, process killed" mmap'd case. When an mmap'd text file is written and then executed immediately

svn commit: r317468 - stable/11/sys/fs/nfsclient

2017-04-26 Thread Rick Macklem
Author: rmacklem Date: Wed Apr 26 22:17:54 2017 New Revision: 317468 URL: https://svnweb.freebsd.org/changeset/base/317468 Log: MFC: r316719 Don't throw away Open state when a NFSv4.1 client recovery fails. If the ExchangeID/CreateSession operations done by an NFSv4.1 client after the

svn commit: r317467 - stable/11/sys/fs/nfsclient

2017-04-26 Thread Rick Macklem
Author: rmacklem Date: Wed Apr 26 22:11:44 2017 New Revision: 317467 URL: https://svnweb.freebsd.org/changeset/base/317467 Log: MFC: r316717 During a server crash recovery, fix the NFSv4.1 client for a NFSERR_BADSESSION during recovery. If the NFSv4.1 client gets a NFSv4.1

svn commit: r317466 - stable/11/sys/rpc

2017-04-26 Thread Rick Macklem
Author: rmacklem Date: Wed Apr 26 22:04:55 2017 New Revision: 317466 URL: https://svnweb.freebsd.org/changeset/base/317466 Log: MFC: r316694 Fix a crash during unmount of an NFSv4.1 mount. Larry Rosenman reported a crash on freebsd-current@ which was caused by a premature release of

svn commit: r317465 - head/sys/fs/nfsclient

2017-04-26 Thread Rick Macklem
Author: rmacklem Date: Wed Apr 26 21:54:53 2017 New Revision: 317465 URL: https://svnweb.freebsd.org/changeset/base/317465 Log: Fix handling of a NFSv4.1 callback reply from the session cache. The nfsv4_seqsession() call returns NFSERR_REPLYFROMCACHE when it has a reply in the session,

svn commit: r317429 - stable/10/sys/fs/nfs

2017-04-25 Thread Rick Macklem
Author: rmacklem Date: Wed Apr 26 00:03:03 2017 New Revision: 317429 URL: https://svnweb.freebsd.org/changeset/base/317429 Log: MFC: r316692 Set initial values for nfsstatfs in the NFSv4 client. The AmazonEFS NFSv4.1 server does not support the FILES_FREE and FILES_TOTAL attributes. As

svn commit: r317427 - stable/11/sys/fs/nfs

2017-04-25 Thread Rick Macklem
Author: rmacklem Date: Tue Apr 25 23:43:37 2017 New Revision: 317427 URL: https://svnweb.freebsd.org/changeset/base/317427 Log: MFC: r316692 Set initial values for nfsstatfs in the NFSv4 client. The AmazonEFS NFSv4.1 server does not support the FILES_FREE and FILES_TOTAL attributes. As

svn commit: r317423 - stable/10/sys/fs/nfsclient

2017-04-25 Thread Rick Macklem
Author: rmacklem Date: Tue Apr 25 20:34:56 2017 New Revision: 317423 URL: https://svnweb.freebsd.org/changeset/base/317423 Log: MFC: r316669 Avoid starvation of the server crash recovery thread for the NFSv4 client. This patch gives a requestor of the exclusive lock on the client state

svn commit: r317422 - stable/11/sys/fs/nfsclient

2017-04-25 Thread Rick Macklem
Author: rmacklem Date: Tue Apr 25 20:24:00 2017 New Revision: 317422 URL: https://svnweb.freebsd.org/changeset/base/317422 Log: MFC: r316669 Avoid starvation of the server crash recovery thread for the NFSv4 client. This patch gives a requestor of the exclusive lock on the client state

svn commit: r317420 - stable/10/sys/fs/nfsclient

2017-04-25 Thread Rick Macklem
Author: rmacklem Date: Tue Apr 25 19:48:25 2017 New Revision: 317420 URL: https://svnweb.freebsd.org/changeset/base/317420 Log: MFC: r316667 Fix the NFSv4 client hndling of a stale write verifier in the Commit operation. When the NFSv4 client Commit operation encountered a stale write

svn commit: r317419 - stable/10/sys/fs/nfs

2017-04-25 Thread Rick Macklem
Author: rmacklem Date: Tue Apr 25 19:35:13 2017 New Revision: 317419 URL: https://svnweb.freebsd.org/changeset/base/317419 Log: MFC: r31 Fix the NFSv4.1 client for NFSERR_BADSESSION recovery via ReclaimComplete. For the ReclaimComplete operation, the RPC layer should not loop on

svn commit: r317418 - stable/11/sys/fs/nfsclient

2017-04-25 Thread Rick Macklem
Author: rmacklem Date: Tue Apr 25 19:14:31 2017 New Revision: 317418 URL: https://svnweb.freebsd.org/changeset/base/317418 Log: MFC: r316667 Fix the NFSv4 client hndling of a stale write verifier in the Commit operation. When the NFSv4 client Commit operation encountered a stale write

svn commit: r317417 - stable/11/sys/fs/nfs

2017-04-25 Thread Rick Macklem
Author: rmacklem Date: Tue Apr 25 19:02:34 2017 New Revision: 317417 URL: https://svnweb.freebsd.org/changeset/base/317417 Log: MFC: r31 Fix the NFSv4.1 client for NFSERR_BADSESSION recovery via ReclaimComplete. For the ReclaimComplete operation, the RPC layer should not loop on

svn commit: r317406 - stable/10/sys/fs/nfsclient

2017-04-25 Thread Rick Macklem
Author: rmacklem Date: Tue Apr 25 12:07:04 2017 New Revision: 317406 URL: https://svnweb.freebsd.org/changeset/base/317406 Log: MFC: r316655 Fix parsing failure for NFSv4 Setattr operation for failed case. If an operation that preceeds a Setattr in an NFSv4 compound fails, there is no

svn commit: r317405 - stable/11/sys/fs/nfsclient

2017-04-25 Thread Rick Macklem
Author: rmacklem Date: Tue Apr 25 11:59:23 2017 New Revision: 317405 URL: https://svnweb.freebsd.org/changeset/base/317405 Log: MFC: r316655 Fix parsing failure for NFSv4 Setattr operation for failed case. If an operation that preceeds a Setattr in an NFSv4 compound fails, there is no

svn commit: r317404 - in stable/10/sys/fs: nfs nfsclient

2017-04-25 Thread Rick Macklem
Author: rmacklem Date: Tue Apr 25 11:36:25 2017 New Revision: 317404 URL: https://svnweb.freebsd.org/changeset/base/317404 Log: MFC: r310491 Fix NFSv4.1 client recovery from NFS4ERR_BAD_SESSION errors. For most NFSv4.1 servers, a NFS4ERR_BAD_SESSION error is a rare failure that

svn commit: r317393 - in stable/11/sys/fs: nfs nfsclient

2017-04-24 Thread Rick Macklem
Author: rmacklem Date: Mon Apr 24 23:47:12 2017 New Revision: 317393 URL: https://svnweb.freebsd.org/changeset/base/317393 Log: MFC: r310491 Fix NFSv4.1 client recovery from NFS4ERR_BAD_SESSION errors. For most NFSv4.1 servers, a NFS4ERR_BAD_SESSION error is a rare failure that

svn commit: r317382 - head/sys/fs/nfsserver

2017-04-24 Thread Rick Macklem
Author: rmacklem Date: Mon Apr 24 20:46:19 2017 New Revision: 317382 URL: https://svnweb.freebsd.org/changeset/base/317382 Log: Allow use of a write open stateid for reading in the NFSv4 server. The NFSv4 RFCs give a server the option of allowing the use of an open stateid for write

svn commit: r317350 - head/usr.sbin/nfsuserd

2017-04-23 Thread Rick Macklem
Author: rmacklem Date: Sun Apr 23 23:09:02 2017 New Revision: 317350 URL: https://svnweb.freebsd.org/changeset/base/317350 Log: Fix the default uid/gid values in nfsuserd.c This patch sets the default uid/gid values for "nobody" and "nogroup" to the values in the password and group

svn commit: r317345 - in head/sys/fs: nfs nfsclient

2017-04-23 Thread Rick Macklem
Author: rmacklem Date: Sun Apr 23 21:51:28 2017 New Revision: 317345 URL: https://svnweb.freebsd.org/changeset/base/317345 Log: Make the NFSv4 client to use a write open for reading if allowed by the server. An NFSv4 server has the option of allowing a Read to be done using a Write

svn commit: r317344 - head/sys/fs/nfsclient

2017-04-23 Thread Rick Macklem
Author: rmacklem Date: Sun Apr 23 21:36:32 2017 New Revision: 317344 URL: https://svnweb.freebsd.org/changeset/base/317344 Log: Don't set the connection-back-channel flag for DS sessions. The NFSv4.1/pNFS client does not use/need a backchannel for the Data Server (DS) sessions, so the

svn commit: r317305 - head/sys/fs/nfsclient

2017-04-22 Thread Rick Macklem
Author: rmacklem Date: Sat Apr 22 22:37:44 2017 New Revision: 317305 URL: https://svnweb.freebsd.org/changeset/base/317305 Log: Fix the NFSv4.1/pNFS client return layout on close. The "return layout on close" case in the pNFS client was badly broken. Fortunately, extant pNFS servers that

svn commit: r317296 - head/sys/fs/nfsclient

2017-04-22 Thread Rick Macklem
Author: rmacklem Date: Sat Apr 22 20:55:39 2017 New Revision: 317296 URL: https://svnweb.freebsd.org/changeset/base/317296 Log: Fix some krpc leaks for the NFSv4.1/pNFS client. The NFSv4.1/pNFS client wasn't doing a newnfs_disconnect() call for the connection to the Data Server (DS)

svn commit: r317276 - head/sys/fs/nfs

2017-04-21 Thread Rick Macklem
Author: rmacklem Date: Fri Apr 21 23:01:32 2017 New Revision: 317276 URL: https://svnweb.freebsd.org/changeset/base/317276 Log: Don't set ND_NOMOREDATA for a failed Setattr operation (NFSv4). The NFSv4 Setattr operation always has reply data even when it fails, so don't set the

svn commit: r317275 - head/sys/fs/nfs

2017-04-21 Thread Rick Macklem
Author: rmacklem Date: Fri Apr 21 22:38:26 2017 New Revision: 317275 URL: https://svnweb.freebsd.org/changeset/base/317275 Log: Don't create a backchannel for a DS connection. An NFSv4.1 client connection to a Data Server (DS) should not have a backchannel. This patch fixes the

svn commit: r317272 - head/sys/fs/nfsclient

2017-04-21 Thread Rick Macklem
Author: rmacklem Date: Fri Apr 21 21:43:00 2017 New Revision: 317272 URL: https://svnweb.freebsd.org/changeset/base/317272 Log: Add checks for failed operations to the NFSv4 client function nfscl_mtofh(). The nfscl_mtofh() function didn't check for failed operations and, as such, would

svn commit: r317270 - head/usr.sbin/nfsuserd

2017-04-21 Thread Rick Macklem
Author: rmacklem Date: Fri Apr 21 20:53:51 2017 New Revision: 317270 URL: https://svnweb.freebsd.org/changeset/base/317270 Log: Get rid of bogus statement in the nfsuserd.8 man page. The nfsuserd.8 man page stated that a usertimeout of 0 would disable the cache timeout. This was simply

svn commit: r317269 - in head/sys: fs/nfs sys

2017-04-21 Thread Rick Macklem
Author: rmacklem Date: Fri Apr 21 20:08:10 2017 New Revision: 317269 URL: https://svnweb.freebsd.org/changeset/base/317269 Log: Set default uid/gid to nobody/nogroup for NFSv4 mapping. The default uid/gid for NFSv4 are set by the nfsuserd(8) daemon. However, they were 0 until the

svn commit: r317251 - head/sys/fs/nfs

2017-04-21 Thread Rick Macklem
Author: rmacklem Date: Fri Apr 21 11:48:12 2017 New Revision: 317251 URL: https://svnweb.freebsd.org/changeset/base/317251 Log: Revert r317240. I didn't realize there were defined constants for uid/gid values in sys/conf.h. I will do another commit using those. Modified:

Re: svn commit: r317240 - head/sys/fs/nfs

2017-04-21 Thread Rick Macklem
do? rick ps: I hope you don't mind the top post... From: Bruce Evans <b...@optusnet.com.au> Sent: Friday, April 21, 2017 1:19:25 AM To: Rick Macklem Cc: src-committ...@freebsd.org; svn-src-all@freebsd.org; svn-src-h...@freebsd.org Subject: Re: svn

svn commit: r317240 - head/sys/fs/nfs

2017-04-20 Thread Rick Macklem
Author: rmacklem Date: Fri Apr 21 01:50:41 2017 New Revision: 317240 URL: https://svnweb.freebsd.org/changeset/base/317240 Log: Set default uid/gid to nobody/nogroup for NFSv4 mapping. The default uid/gid for NFSv4 are set by the nfsuserd(8) daemon. However, they were 0 until the

svn commit: r317236 - head/sys/fs/nfsserver

2017-04-20 Thread Rick Macklem
Author: rmacklem Date: Fri Apr 21 00:17:47 2017 New Revision: 317236 URL: https://svnweb.freebsd.org/changeset/base/317236 Log: Fix the setting of atime for Linux client NFSv4 mounts. The FreeBSD NFSv4 server did not set the attribute bit for TimeAccess in the reply to an Open with

svn commit: r316829 - in head/sys/fs: nfs nfsclient

2017-04-14 Thread Rick Macklem
Author: rmacklem Date: Fri Apr 14 13:25:45 2017 New Revision: 316829 URL: https://svnweb.freebsd.org/changeset/base/316829 Log: Remove unused "cred" argument to ncl_flush(). The "cred" argument of ncl_flush() is unused and it was confusing to have the code passing in NULL for this

svn commit: r316793 - head/sbin/mount_nfs

2017-04-13 Thread Rick Macklem
Author: rmacklem Date: Thu Apr 13 22:05:24 2017 New Revision: 316793 URL: https://svnweb.freebsd.org/changeset/base/316793 Log: Document the "oneopenown" option added by r316792. This is a content change. MFC after:2 weeks Modified: head/sbin/mount_nfs/mount_nfs.8 Modified:

svn commit: r316792 - in head/sys: fs/nfs fs/nfsclient nfsclient

2017-04-13 Thread Rick Macklem
Author: rmacklem Date: Thu Apr 13 21:54:19 2017 New Revision: 316792 URL: https://svnweb.freebsd.org/changeset/base/316792 Log: Add an NFSv4.1 mount option for "use one openowner". Some NFSv4.1 servers such as AmazonEFS can only support a small fixed number of open_owner4s. This patch

svn commit: r316782 - head/sys/fs/nfsclient

2017-04-13 Thread Rick Macklem
Author: rmacklem Date: Thu Apr 13 20:16:29 2017 New Revision: 316782 URL: https://svnweb.freebsd.org/changeset/base/316782 Log: Add call to svcpool_close() for the NFSv4 callback pool (svcpool_nfscbd). A function called svcpool_close() was added to the server side krpc by r313735, so

svn commit: r316745 - head/sys/fs/nfsclient

2017-04-12 Thread Rick Macklem
Author: rmacklem Date: Wed Apr 12 21:37:12 2017 New Revision: 316745 URL: https://svnweb.freebsd.org/changeset/base/316745 Log: Fix the NFS client for "text file modified, process killed" mmap'd case. When an mmap'd text file is written and then executed immediately afterwards, it was

svn commit: r316719 - head/sys/fs/nfsclient

2017-04-11 Thread Rick Macklem
Author: rmacklem Date: Tue Apr 11 22:47:02 2017 New Revision: 316719 URL: https://svnweb.freebsd.org/changeset/base/316719 Log: Don't throw away Open state when a NFSv4.1 client recovery fails. If the ExchangeID/CreateSession operations done by an NFSv4.1 client after the server

svn commit: r316717 - head/sys/fs/nfsclient

2017-04-11 Thread Rick Macklem
Author: rmacklem Date: Tue Apr 11 20:28:15 2017 New Revision: 316717 URL: https://svnweb.freebsd.org/changeset/base/316717 Log: During a server crash recovery, fix the NFSv4.1 client for a NFSERR_BADSESSION during recovery. If the NFSv4.1 client gets a NFSv4.1 NFSERR_BADSESSION reply to

svn commit: r316694 - head/sys/rpc

2017-04-10 Thread Rick Macklem
Author: rmacklem Date: Mon Apr 10 22:47:18 2017 New Revision: 316694 URL: https://svnweb.freebsd.org/changeset/base/316694 Log: Fix a crash during unmount of an NFSv4.1 mount. Larry Rosenman reported a crash on freebsd-current@ which was caused by a premature release of the krpc

svn commit: r316692 - head/sys/fs/nfs

2017-04-10 Thread Rick Macklem
Author: rmacklem Date: Mon Apr 10 21:49:35 2017 New Revision: 316692 URL: https://svnweb.freebsd.org/changeset/base/316692 Log: Set initial values for nfsstatfs in the NFSv4 client. The AmazonEFS NFSv4.1 server does not support the FILES_FREE and FILES_TOTAL attributes. As such, an

svn commit: r316669 - head/sys/fs/nfsclient

2017-04-09 Thread Rick Macklem
Author: rmacklem Date: Mon Apr 10 01:28:01 2017 New Revision: 316669 URL: https://svnweb.freebsd.org/changeset/base/316669 Log: Avoid starvation of the server crash recovery thread for the NFSv4 client. This patch gives a requestor of the exclusive lock on the client state in the NFSv4

svn commit: r316667 - head/sys/fs/nfsclient

2017-04-09 Thread Rick Macklem
Author: rmacklem Date: Sun Apr 9 21:50:21 2017 New Revision: 316667 URL: https://svnweb.freebsd.org/changeset/base/316667 Log: Fix the NFSv4 client hndling of a stale write verifier in the Commit operation. When the NFSv4 client Commit operation encountered a stale write verifier, it

svn commit: r316666 - head/sys/fs/nfs

2017-04-09 Thread Rick Macklem
Author: rmacklem Date: Sun Apr 9 21:06:21 2017 New Revision: 31 URL: https://svnweb.freebsd.org/changeset/base/31 Log: Fix the NFSv4.1 client for NFSERR_BADSESSION recovery via ReclaimComplete. For the ReclaimComplete operation, the RPC layer should not loop on

svn commit: r316655 - head/sys/fs/nfsclient

2017-04-09 Thread Rick Macklem
Author: rmacklem Date: Sun Apr 9 12:32:22 2017 New Revision: 316655 URL: https://svnweb.freebsd.org/changeset/base/316655 Log: Fix parsing failure for NFSv4 Setattr operation for failed case. If an operation that preceeds a Setattr in an NFSv4 compound fails, there is no bitmap of

Re: svn commit: r314087 - head/sys/x86/x86

2017-02-26 Thread Rick Macklem
Warner Losh wrote: > On Sun, Feb 26, 2017 at 5:44 AM, Konstantin Belousov > wrote: > > On Sun, Feb 26, 2017 at 04:43:12AM +1100, Bruce Evans wrote: > > 2.9 BSD was a port to PDP-11, AFAIK, with 16bit ints. > > A bit off topic, but 2BSD was basically[**] a continuation of

svn commit: r310491 - in head/sys/fs: nfs nfsclient

2016-12-23 Thread Rick Macklem
Author: rmacklem Date: Fri Dec 23 23:14:53 2016 New Revision: 310491 URL: https://svnweb.freebsd.org/changeset/base/310491 Log: Fix NFSv4.1 client recovery from NFS4ERR_BAD_SESSION errors. For most NFSv4.1 servers, a NFS4ERR_BAD_SESSION error is a rare failure that indicates that the

svn commit: r310432 - stable/11/usr.sbin/nfsd

2016-12-22 Thread Rick Macklem
Author: rmacklem Date: Thu Dec 22 21:56:41 2016 New Revision: 310432 URL: https://svnweb.freebsd.org/changeset/base/310432 Log: MFC: r309723 Patch the nfsd so that it doesn't register with rpcbind for an NFSv4 only server. This patch uses the sysctl vfs.nfsd.server_min_nfsvers to

svn commit: r310303 - stable/10/sys/fs/nfsserver

2016-12-19 Thread Rick Macklem
Author: rmacklem Date: Mon Dec 19 22:28:28 2016 New Revision: 310303 URL: https://svnweb.freebsd.org/changeset/base/310303 Log: MFC: r309566 Fix the NFSv4.1 server for Open reclaim after a reboot. The NFSv4.1 server failed to update the nfs-stablerestart file for a client when the

svn commit: r310301 - stable/11/sys/fs/nfsserver

2016-12-19 Thread Rick Macklem
Author: rmacklem Date: Mon Dec 19 22:15:29 2016 New Revision: 310301 URL: https://svnweb.freebsd.org/changeset/base/310301 Log: MFC: r309566 Fix the NFSv4.1 server for Open reclaim after a reboot. The NFSv4.1 server failed to update the nfs-stablerestart file for a client when the

svn commit: r309832 - stable/11/usr.bin/nfsstat

2016-12-10 Thread Rick Macklem
Author: rmacklem Date: Sat Dec 10 21:13:50 2016 New Revision: 309832 URL: https://svnweb.freebsd.org/changeset/base/309832 Log: MFC: r309198, r309199 Document the -E flag for nfsstat. This is a content change. Modified: stable/11/usr.bin/nfsstat/nfsstat.1 Directory Properties:

svn commit: r309831 - stable/11/usr.bin/nfsstat

2016-12-10 Thread Rick Macklem
Author: rmacklem Date: Sat Dec 10 21:03:49 2016 New Revision: 309831 URL: https://svnweb.freebsd.org/changeset/base/309831 Log: MFC: r309197 Add a -E flag to nfsstat.c so that it prints out the NFSv4.1 procedure/operation counts. It also avoids clipping the counts at 9 digits. Modified:

svn commit: r309781 - stable/11/sys/fs/nfs

2016-12-09 Thread Rick Macklem
Author: rmacklem Date: Sat Dec 10 00:32:10 2016 New Revision: 309781 URL: https://svnweb.freebsd.org/changeset/base/309781 Log: MFC: r309171 Stop "nfsstat -z" from clearing counts of NFSv4 state structures. The "-z" option on nfsstats was erroneously zeroing out the counts of NFSv4

svn commit: r309723 - head/usr.sbin/nfsd

2016-12-08 Thread Rick Macklem
Author: rmacklem Date: Thu Dec 8 23:29:56 2016 New Revision: 309723 URL: https://svnweb.freebsd.org/changeset/base/309723 Log: Patch the nfsd so that it doesn't register with rpcbind for an NFSv4 only server. This patch uses the sysctl vfs.nfsd.server_min_nfsvers to determine if/what

svn commit: r309566 - head/sys/fs/nfsserver

2016-12-05 Thread Rick Macklem
Author: rmacklem Date: Mon Dec 5 22:36:25 2016 New Revision: 309566 URL: https://svnweb.freebsd.org/changeset/base/309566 Log: Fix the NFSv4.1 server for Open reclaim after a reboot. The NFSv4.1 server failed to update the nfs-stablerestart file for a client when the client was issued

svn commit: r309518 - stable/10/sbin/umount

2016-12-03 Thread Rick Macklem
Author: rmacklem Date: Sat Dec 3 21:56:46 2016 New Revision: 309518 URL: https://svnweb.freebsd.org/changeset/base/309518 Log: MFC: r308871 Modify umount so that it does not do an Unmount RPC for NFSv4 mounts and uses TCP for the Unmount RPC if the mount is over TCP. Without this patch,

svn commit: r309517 - stable/11/sbin/umount

2016-12-03 Thread Rick Macklem
Author: rmacklem Date: Sat Dec 3 21:49:26 2016 New Revision: 309517 URL: https://svnweb.freebsd.org/changeset/base/309517 Log: MFC: r308871 Modify umount so that it does not do an Unmount RPC for NFSv4 mounts and uses TCP for the Unmount RPC if the mount is over TCP. Without this patch,

svn commit: r309199 - head/usr.bin/nfsstat

2016-11-26 Thread Rick Macklem
Author: rmacklem Date: Sat Nov 26 20:58:05 2016 New Revision: 309199 URL: https://svnweb.freebsd.org/changeset/base/309199 Log: Use November instead of the abbreviation. Requested by: Ed Shouten MFC after:2 weeks Modified: head/usr.bin/nfsstat/nfsstat.1 Modified:

svn commit: r309198 - head/usr.bin/nfsstat

2016-11-26 Thread Rick Macklem
Author: rmacklem Date: Sat Nov 26 20:53:22 2016 New Revision: 309198 URL: https://svnweb.freebsd.org/changeset/base/309198 Log: Document the -E flag for nfsstat. This is a content change. Reviewed by: bcr MFC after:2 weeks Differential Revision:

svn commit: r309197 - head/usr.bin/nfsstat

2016-11-26 Thread Rick Macklem
Author: rmacklem Date: Sat Nov 26 20:47:11 2016 New Revision: 309197 URL: https://svnweb.freebsd.org/changeset/base/309197 Log: Add a -E flag to nfsstat.c so that it prints out the NFSv4.1 procedure/operation counts. It also avoids clipping the counts at 9 digits. Reviewed by: bcr

svn commit: r309171 - head/sys/fs/nfs

2016-11-25 Thread Rick Macklem
Author: rmacklem Date: Fri Nov 25 23:28:09 2016 New Revision: 309171 URL: https://svnweb.freebsd.org/changeset/base/309171 Log: Stop "nfsstat -z" from clearing counts of NFSv4 state structures. The "-z" option on nfsstats was erroneously zeroing out the counts of NFSv4 state structures.

svn commit: r308871 - head/sbin/umount

2016-11-19 Thread Rick Macklem
Author: rmacklem Date: Sat Nov 19 23:58:50 2016 New Revision: 308871 URL: https://svnweb.freebsd.org/changeset/base/308871 Log: Modify umount so that it does not do an Unmount RPC for NFSv4 mounts and uses TCP for the Unmount RPC if the mount is over TCP. Without this patch, umount does an

svn commit: r308455 - stable/9/usr.sbin/mountd

2016-11-08 Thread Rick Macklem
Author: rmacklem Date: Tue Nov 8 21:57:49 2016 New Revision: 308455 URL: https://svnweb.freebsd.org/changeset/base/308455 Log: MFC: r307891 Fix the man page to reflect the change done by r307890 to mountd.c so that the "-n" option uses the sysctl for the correct NFS server. This is a

svn commit: r308454 - stable/9/usr.sbin/mountd

2016-11-08 Thread Rick Macklem
Author: rmacklem Date: Tue Nov 8 21:52:55 2016 New Revision: 308454 URL: https://svnweb.freebsd.org/changeset/base/308454 Log: MFC: r307890 mountd(8) was erroneously setting the sysctl for the old NFS server when the new/default NFS server was running, for the "-n" option. This patch

<    2   3   4   5   6   7   8   9   10   11   >