svn commit: r308453 - stable/10/usr.sbin/mountd

2016-11-08 Thread Rick Macklem
Author: rmacklem Date: Tue Nov 8 21:47:00 2016 New Revision: 308453 URL: https://svnweb.freebsd.org/changeset/base/308453 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: r308452 - stable/10/usr.sbin/mountd

2016-11-08 Thread Rick Macklem
Author: rmacklem Date: Tue Nov 8 21:39:15 2016 New Revision: 308452 URL: https://svnweb.freebsd.org/changeset/base/308452 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

svn commit: r308450 - stable/11/usr.sbin/mountd

2016-11-08 Thread Rick Macklem
Author: rmacklem Date: Tue Nov 8 21:15:50 2016 New Revision: 308450 URL: https://svnweb.freebsd.org/changeset/base/308450 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 new NFS server. This is a content

svn commit: r308449 - stable/11/usr.sbin/mountd

2016-11-08 Thread Rick Macklem
Author: rmacklem Date: Tue Nov 8 21:09:48 2016 New Revision: 308449 URL: https://svnweb.freebsd.org/changeset/base/308449 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

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

2016-11-02 Thread Rick Macklem
Author: rmacklem Date: Thu Nov 3 00:58:50 2016 New Revision: 308241 URL: https://svnweb.freebsd.org/changeset/base/308241 Log: MFC: r307694 A problem w.r.t. interoperation between the FreeBSD NFSv4.1 server with delegations enabled and the Linux NFSv4.1 client was reported in

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

2016-11-02 Thread Rick Macklem
Author: rmacklem Date: Thu Nov 3 00:50:20 2016 New Revision: 308239 URL: https://svnweb.freebsd.org/changeset/base/308239 Log: MFC: r307694 A problem w.r.t. interoperation between the FreeBSD NFSv4.1 server with delegations enabled and the Linux NFSv4.1 client was reported in

svn commit: r307891 - head/usr.sbin/mountd

2016-10-24 Thread Rick Macklem
Author: rmacklem Date: Tue Oct 25 00:59:23 2016 New Revision: 307891 URL: https://svnweb.freebsd.org/changeset/base/307891 Log: Fix the man page to reflect the change done by r307890 to mountd.c so that the "-n" option uses the sysctl for the new NFS server. This is a content change.

svn commit: r307890 - head/usr.sbin/mountd

2016-10-24 Thread Rick Macklem
Author: rmacklem Date: Tue Oct 25 00:52:42 2016 New Revision: 307890 URL: https://svnweb.freebsd.org/changeset/base/307890 Log: 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 fixes the

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

2016-10-20 Thread Rick Macklem
Author: rmacklem Date: Thu Oct 20 23:53:16 2016 New Revision: 307694 URL: https://svnweb.freebsd.org/changeset/base/307694 Log: A problem w.r.t. interoperation between the FreeBSD NFSv4.1 server with delegations enabled and the Linux NFSv4.1 client was reported in reviews.freebsd.org/D7891.

svn commit: r307664 - stable/11/sys/netinet

2016-10-19 Thread Rick Macklem
Author: rmacklem Date: Thu Oct 20 02:03:19 2016 New Revision: 307664 URL: https://svnweb.freebsd.org/changeset/base/307664 Log: MFC: r306559 r297225 broke udp_output() for the case where the "addr" argument is NULL and the function jumps to the "release:" label. For this case, the "inp"

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

2016-10-03 Thread Rick Macklem
Author: rmacklem Date: Mon Oct 3 23:17:57 2016 New Revision: 306663 URL: https://svnweb.freebsd.org/changeset/base/306663 Log: Revert r306659 since the userland changes won't merge and this would break the build. Modified: stable/10/sys/fs/nfs/nfs_commonkrpc.c

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

2016-10-03 Thread Rick Macklem
Author: rmacklem Date: Mon Oct 3 22:11:45 2016 New Revision: 306659 URL: https://svnweb.freebsd.org/changeset/base/306659 Log: MFC: r304026 Update the nfsstats structure to include the changes needed by the patch in D1626 plus changes so that it includes counts for NFSv4.1 (and the draft

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

2016-10-03 Thread Rick Macklem
Author: rmacklem Date: Mon Oct 3 12:13:40 2016 New Revision: 306633 URL: https://svnweb.freebsd.org/changeset/base/306633 Log: MFC: r304059 Update the man page to descibe the "-d" option added by r304058. This is a content change. Modified: stable/11/usr.bin/nfsstat/nfsstat.1

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

2016-10-03 Thread Rick Macklem
Author: rmacklem Date: Mon Oct 3 12:02:45 2016 New Revision: 306632 URL: https://svnweb.freebsd.org/changeset/base/306632 Log: MFC: r304058, r304066, r304194 Update nfsstat.c to use the new kernel nfsstat structure and add the new "-d" flag from D1626. The man page will be updated in a

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

2016-10-02 Thread Rick Macklem
Author: rmacklem Date: Mon Oct 3 00:10:14 2016 New Revision: 306609 URL: https://svnweb.freebsd.org/changeset/base/306609 Log: MFC: r304026 Update the nfsstats structure to include the changes needed by the patch in D1626 plus changes so that it includes counts for NFSv4.1 (and the draft

svn commit: r306559 - head/sys/netinet

2016-10-01 Thread Rick Macklem
Author: rmacklem Date: Sat Oct 1 19:39:09 2016 New Revision: 306559 URL: https://svnweb.freebsd.org/changeset/base/306559 Log: r297225 broke udp_output() for the case where the "addr" argument is NULL and the function jumps to the "release:" label. For this case, the "inp" was write

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

2016-08-15 Thread Rick Macklem
Author: rmacklem Date: Tue Aug 16 00:48:13 2016 New Revision: 304194 URL: https://svnweb.freebsd.org/changeset/base/304194 Log: Fix r304026 so that it builds for gcc. Reported by: np Tested by:np MFC after:1 month Modified: head/usr.bin/nfsstat/nfsstat.c Modified:

Re: svn commit: r304066 - head/usr.bin/nfsstat

2016-08-14 Thread Rick Macklem
Mark Johnson wrote: >Author: markj >Date: Sun Aug 14 00:24:00 2016 >New Revision: 304066 >URL: https://svnweb.freebsd.org/changeset/base/304066 > >Log: > nfsstat depends on libdevstat as of r304058. Oops, sorry. I missed committing the Makefile change. Thanks for doing it, rick

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

2016-08-13 Thread Rick Macklem
Author: rmacklem Date: Sat Aug 13 20:21:32 2016 New Revision: 304059 URL: https://svnweb.freebsd.org/changeset/base/304059 Log: Update the man page to descibe the "-d" option added by r304058. This is a content change. Submitted by: will (earlier version) Reviewed by: ken, wblock

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

2016-08-13 Thread Rick Macklem
Author: rmacklem Date: Sat Aug 13 20:14:44 2016 New Revision: 304058 URL: https://svnweb.freebsd.org/changeset/base/304058 Log: Update nfsstat.c to use the new kernel nfsstat structure and add the new "-d" flag from D1626. The man page will be updated in a subsequent commit. Submitted

svn commit: r304026 - in head/sys/fs: nfs nfsclient nfsserver

2016-08-12 Thread Rick Macklem
Author: rmacklem Date: Fri Aug 12 22:44:59 2016 New Revision: 304026 URL: https://svnweb.freebsd.org/changeset/base/304026 Log: Update the nfsstats structure to include the changes needed by the patch in D1626 plus changes so that it includes counts for NFSv4.1 (and the draft of NFSv4.2).

svn commit: r301164 - stable/10/sys/fs/fuse

2016-06-01 Thread Rick Macklem
Author: rmacklem Date: Wed Jun 1 20:30:31 2016 New Revision: 301164 URL: https://svnweb.freebsd.org/changeset/base/301164 Log: MFC: r300169 If a local (AF_LOCAL, AF_UNIX) socket creation (bind) is attempted on a fuse mounted file system, it will crash. Although it may be possible to make

svn commit: r300978 - stable/10/sys/fs/fuse

2016-05-29 Thread Rick Macklem
Author: rmacklem Date: Sun May 29 23:30:36 2016 New Revision: 300978 URL: https://svnweb.freebsd.org/changeset/base/300978 Log: MFC: r299872 Fix fuse for "cp" of a mode 0444 file to the file system. When "cp" of a file with read-only (mode 0444) to a fuse mounted file system was

svn commit: r300977 - stable/10/sys/fs/fuse

2016-05-29 Thread Rick Macklem
Author: rmacklem Date: Sun May 29 23:05:14 2016 New Revision: 300977 URL: https://svnweb.freebsd.org/changeset/base/300977 Log: MFC: r299816 Fix fuse so that stale buffer cache data isn't read. When I/O on a file under fuse is switched from buffered to DIRECT_IO, it was possible to

svn commit: r300916 - stable/10/sys/fs/fuse

2016-05-28 Thread Rick Macklem
Author: rmacklem Date: Sat May 28 22:42:56 2016 New Revision: 300916 URL: https://svnweb.freebsd.org/changeset/base/300916 Log: MFC: r299753 Fix fuse to use DIRECT_IO when required. When a file is opened write-only and a partial block was written, buffered I/O would try and read the

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

2016-05-27 Thread Rick Macklem
Author: rmacklem Date: Fri May 27 23:15:58 2016 New Revision: 300887 URL: https://svnweb.freebsd.org/changeset/base/300887 Log: MFC: r299514 Fix use-after-free in NFS4 lock test service. Trivial use-after-free where stp was freed too soon in the non-error path. To fix, simply move its

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

2016-05-26 Thread Rick Macklem
Author: rmacklem Date: Thu May 26 21:32:16 2016 New Revision: 300778 URL: https://svnweb.freebsd.org/changeset/base/300778 Log: MFC: r299514 Fix use-after-free in NFS4 lock test service. Trivial use-after-free where stp was freed too soon in the non-error path. To fix, simply move its

svn commit: r300437 - stable/10/etc/defaults

2016-05-22 Thread Rick Macklem
Author: rmacklem Date: Sun May 22 20:44:11 2016 New Revision: 300437 URL: https://svnweb.freebsd.org/changeset/base/300437 Log: MFC: r299242 Make "-S" a default option for mountd. After a discussion on freebsd-fs@ there seemed to be a consensus that the "-S" option for mountd should

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

2016-05-21 Thread Rick Macklem
Author: rmacklem Date: Sat May 21 20:50:25 2016 New Revision: 300379 URL: https://svnweb.freebsd.org/changeset/base/300379 Log: MFC: r299226 Don't increment srvrpccnt[] for the NFSv4.1 operations. When support for NFSv4.1 was added to the NFS server, it broke the server rpc count

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

2016-05-19 Thread Rick Macklem
Author: rmacklem Date: Fri May 20 01:25:14 2016 New Revision: 300255 URL: https://svnweb.freebsd.org/changeset/base/300255 Log: MFC: r299201 Give mountd -S priority over outstanding RPC requests when suspending the nfsd. It was reported via email that under certain heavy RPC loads

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

2016-05-19 Thread Rick Macklem
Author: rmacklem Date: Fri May 20 01:19:30 2016 New Revision: 300254 URL: https://svnweb.freebsd.org/changeset/base/300254 Log: MFC: r299201 Give mountd -S priority over outstanding RPC requests when suspending the nfsd. It was reported via email that under certain heavy RPC loads

svn commit: r300169 - head/sys/fs/fuse

2016-05-18 Thread Rick Macklem
Author: rmacklem Date: Wed May 18 22:23:20 2016 New Revision: 300169 URL: https://svnweb.freebsd.org/changeset/base/300169 Log: If a local (AF_LOCAL, AF_UNIX) socket creation (bind) is attempted on a fuse mounted file system, it will crash. Although it may be possible to make this work

Re: svn commit: r299753 - head/sys/fs/fuse

2016-05-16 Thread Rick Macklem
Alexey Dokuchaev wrote: > On Sat, May 14, 2016 at 08:03:22PM +0000, Rick Macklem wrote: > > New Revision: 299753 > > URL: https://svnweb.freebsd.org/changeset/base/299753 > > > > Log: > > Fix fuse to use DIRECT_IO when required. > > > > When a

Re: svn commit: r299753 - head/sys/fs/fuse

2016-05-16 Thread Rick Macklem
Alexey Dokuchaev wrote: > On Sat, May 14, 2016 at 08:03:22PM +0000, Rick Macklem wrote: > > New Revision: 299753 > > URL: https://svnweb.freebsd.org/changeset/base/299753 > > > > Log: > > Fix fuse to use DIRECT_IO when required. > > > > When a

svn commit: r299872 - head/sys/fs/fuse

2016-05-15 Thread Rick Macklem
Author: rmacklem Date: Sun May 15 23:15:10 2016 New Revision: 299872 URL: https://svnweb.freebsd.org/changeset/base/299872 Log: Fix fuse for "cp" of a mode 0444 file to the file system. When "cp" of a file with read-only (mode 0444) to a fuse mounted file system was attempted it would

svn commit: r299816 - head/sys/fs/fuse

2016-05-14 Thread Rick Macklem
Author: rmacklem Date: Sun May 15 00:45:17 2016 New Revision: 299816 URL: https://svnweb.freebsd.org/changeset/base/299816 Log: Fix fuse so that stale buffer cache data isn't read. When I/O on a file under fuse is switched from buffered to DIRECT_IO, it was possible to read stale (before

svn commit: r299753 - head/sys/fs/fuse

2016-05-14 Thread Rick Macklem
Author: rmacklem Date: Sat May 14 20:03:22 2016 New Revision: 299753 URL: https://svnweb.freebsd.org/changeset/base/299753 Log: Fix fuse to use DIRECT_IO when required. When a file is opened write-only and a partial block was written, buffered I/O would try and read the whole block in.

Re: svn commit: r299514 - head/sys/fs/nfsserver

2016-05-12 Thread Rick Macklem
Oh, and I'll MFC it in 2 weeks unless there is an objection, rick - Original Message - > Author: cem > Date: Thu May 12 05:03:12 2016 > New Revision: 299514 > URL: https://svnweb.freebsd.org/changeset/base/299514 > > Log: > nfsd: Fix use-after-free in NFS4 lock test service > >

Re: svn commit: r299514 - head/sys/fs/nfsserver

2016-05-12 Thread Rick Macklem
Thanks for spotting/fixing this, rick - Original Message - > Author: cem > Date: Thu May 12 05:03:12 2016 > New Revision: 299514 > URL: https://svnweb.freebsd.org/changeset/base/299514 > > Log: > nfsd: Fix use-after-free in NFS4 lock test service > > Trivial use-after-free where

svn commit: r299242 - head/etc/defaults

2016-05-08 Thread Rick Macklem
Author: rmacklem Date: Sun May 8 20:10:22 2016 New Revision: 299242 URL: https://svnweb.freebsd.org/changeset/base/299242 Log: Make "-S" a default option for mountd. After a discussion on freebsd-fs@ there seemed to be a consensus that the "-S" option for mountd should become the

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

2016-05-07 Thread Rick Macklem
Author: rmacklem Date: Sat May 7 22:45:08 2016 New Revision: 299226 URL: https://svnweb.freebsd.org/changeset/base/299226 Log: Don't increment srvrpccnt[] for the NFSv4.1 operations. When support for NFSv4.1 was added to the NFS server, it broke the server rpc count stats, since

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

2016-05-07 Thread Rick Macklem
Author: rmacklem Date: Sat May 7 21:34:04 2016 New Revision: 299225 URL: https://svnweb.freebsd.org/changeset/base/299225 Log: MFC: r298523 Allow the NFSv4 server to reply NFSERR_WRONGSEC for the SetClientID operation. It was reported via email that a Linux client couldn't do a

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

2016-05-07 Thread Rick Macklem
Author: rmacklem Date: Sat May 7 20:17:23 2016 New Revision: 299223 URL: https://svnweb.freebsd.org/changeset/base/299223 Log: MFC: r298523 Allow the NFSv4 server to reply NFSERR_WRONGSEC for the SetClientID operation. It was reported via email that a Linux client couldn't do a

svn commit: r299222 - in stable/10/sys/fs: nfs nfsserver

2016-05-07 Thread Rick Macklem
Author: rmacklem Date: Sat May 7 20:09:15 2016 New Revision: 299222 URL: https://svnweb.freebsd.org/changeset/base/299222 Log: MFC: r298495 Fix a LOR in the NFSv4.1 server. The ordering of acquisition of the state and session mutexes was reversed in two cases executed when an NFSv4.1

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

2016-05-06 Thread Rick Macklem
Author: rmacklem Date: Sat May 7 00:07:03 2016 New Revision: 299209 URL: https://svnweb.freebsd.org/changeset/base/299209 Log: MFC: r297869 If the VOP_SETATTR() call that saves the exclusive create verifier failed, the NFS server would leave the newly created vnode locked. This could

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

2016-05-06 Thread Rick Macklem
Author: rmacklem Date: Sat May 7 00:02:28 2016 New Revision: 299208 URL: https://svnweb.freebsd.org/changeset/base/299208 Log: MFC: r297869 If the VOP_SETATTR() call that saves the exclusive create verifier failed, the NFS server would leave the newly created vnode locked. This could

svn commit: r299207 - in stable/9/sys/fs: nfs nfsclient

2016-05-06 Thread Rick Macklem
Author: rmacklem Date: Fri May 6 23:55:28 2016 New Revision: 299207 URL: https://svnweb.freebsd.org/changeset/base/299207 Log: MFC: r297837 Bruce Evans reported that there was a performance regression between the old and new NFS clients. He did a good job of isolating the problem which

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

2016-05-06 Thread Rick Macklem
Author: rmacklem Date: Fri May 6 23:44:24 2016 New Revision: 299204 URL: https://svnweb.freebsd.org/changeset/base/299204 Log: MFC: r297837 Bruce Evans reported that there was a performance regression between the old and new NFS clients. He did a good job of isolating the problem which

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

2016-05-06 Thread Rick Macklem
Author: rmacklem Date: Fri May 6 23:26:17 2016 New Revision: 299201 URL: https://svnweb.freebsd.org/changeset/base/299201 Log: Give mountd -S priority over outstanding RPC requests when suspending the nfsd. It was reported via email that under certain heavy RPC loads long delays before

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

2016-04-23 Thread Rick Macklem
Author: rmacklem Date: Sat Apr 23 21:18:45 2016 New Revision: 298523 URL: https://svnweb.freebsd.org/changeset/base/298523 Log: Allow the NFSv4 server to reply NFSERR_WRONGSEC for the SetClientID operation. It was reported via email that a Linux client couldn't do a Kerberized NFS mount

svn commit: r298495 - in head/sys/fs: nfs nfsserver

2016-04-22 Thread Rick Macklem
Author: rmacklem Date: Sat Apr 23 01:22:04 2016 New Revision: 298495 URL: https://svnweb.freebsd.org/changeset/base/298495 Log: Fix a LOR in the NFSv4.1 server. The ordering of acquisition of the state and session mutexes was reversed in two cases executed when an NFSv4.1 client

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

2016-04-12 Thread Rick Macklem
Author: rmacklem Date: Tue Apr 12 20:23:09 2016 New Revision: 297869 URL: https://svnweb.freebsd.org/changeset/base/297869 Log: If the VOP_SETATTR() call that saves the exclusive create verifier failed, the NFS server would leave the newly created vnode locked. This could result in a file

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

2016-04-11 Thread Rick Macklem
Author: rmacklem Date: Mon Apr 11 21:55:21 2016 New Revision: 297837 URL: https://svnweb.freebsd.org/changeset/base/297837 Log: Bruce Evans reported that there was a performance regression between the old and new NFS clients. He did a good job of isolating the problem which was caused by

Re: svn commit: r297201 - in head: share/man/man4 sys/dev/filemon

2016-03-23 Thread Rick Macklem
Benjamin Kaduk wrote: > On Tue, Mar 22, 2016 at 9:11 PM, Bryan Drewery wrote: > > > > > > > > > The manpage for close(2) does document some errors, one being ENOSPC. The > > close(2) behavior of returning write(2), really VOP_WRITE(9), errors though > > is specific to

Re: svn commit: r297190 - head/sys/kern

2016-03-22 Thread Rick Macklem
Ian Lepore wrote: > On Tue, 2016-03-22 at 13:46 +, Edward Tomasz Napierala wrote: > > Author: trasz > > Date: Tue Mar 22 13:46:01 2016 > > New Revision: 297190 > > URL: https://svnweb.freebsd.org/changeset/base/297190 > > > > Log: > > Wait for root mount tokens before showing the root mount

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

2015-12-15 Thread Rick Macklem
Author: rmacklem Date: Wed Dec 16 00:52:35 2015 New Revision: 292307 URL: https://svnweb.freebsd.org/changeset/base/292307 Log: MFC: r291638 Fix the memory leak that occurs when the nfscommon.ko module is unloaded. This leak was introduced by r291527 (r292223 in stable/10). Since the

svn commit: r292224 - in stable/10: . sys/sys

2015-12-14 Thread Rick Macklem
Author: rmacklem Date: Mon Dec 14 21:30:28 2015 New Revision: 292224 URL: https://svnweb.freebsd.org/changeset/base/292224 Log: Bump __FreeBSD_version since r292223 changed the internal interface between the nfsd.ko and nfscommon.ko modules such that they need to be upgraded to-gether.

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

2015-12-14 Thread Rick Macklem
Author: rmacklem Date: Mon Dec 14 22:43:43 2015 New Revision: 292231 URL: https://svnweb.freebsd.org/changeset/base/292231 Log: MFC: r291534 Add support for the "-manage-gids" option to the nfsuserd daemon. When this option is set, the NFS server uses the list of groups acquired via

svn commit: r292223 - in stable/10/sys: fs/nfs fs/nfsserver nfs

2015-12-14 Thread Rick Macklem
Author: rmacklem Date: Mon Dec 14 21:21:43 2015 New Revision: 292223 URL: https://svnweb.freebsd.org/changeset/base/292223 Log: MFC: r291527 Add kernel support to the NFS server for the "-manage-gids" option that will be added to the nfsuserd daemon in a future commit. It modifies the

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

2015-12-14 Thread Rick Macklem
Author: rmacklem Date: Mon Dec 14 22:54:02 2015 New Revision: 292232 URL: https://svnweb.freebsd.org/changeset/base/292232 Log: MFC: r291535 Document the new "-manage-gids" option for the nfsuserd daemon. This is a content change. Modified: stable/10/usr.sbin/nfsuserd/nfsuserd.8

svn commit: r292233 - in stable/10/etc: defaults rc.d

2015-12-14 Thread Rick Macklem
Author: rmacklem Date: Mon Dec 14 23:09:02 2015 New Revision: 292233 URL: https://svnweb.freebsd.org/changeset/base/292233 Log: MFC: r291536 Add support for the new "-manage-gids" option for the nfsuserd daemon to the rc scripts. With these changes, setting nfs_server_managegids="YES" in

svn commit: r291869 - in stable/10/sys/fs: nfs nfsserver

2015-12-05 Thread Rick Macklem
Author: rmacklem Date: Sat Dec 5 21:38:53 2015 New Revision: 291869 URL: https://svnweb.freebsd.org/changeset/base/291869 Log: MFC: r291150 When the nfsd threads are terminated, the NFSv4 server state (opens, locks, etc) is retained, which I believe is correct behaviour. However, for

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

2015-12-05 Thread Rick Macklem
Author: rmacklem Date: Sat Dec 5 21:28:54 2015 New Revision: 291867 URL: https://svnweb.freebsd.org/changeset/base/291867 Log: MFC: r291117 Revert r283330 since it broke directory caching in the client. At this time I cannot see a way to fix directory caching when it has partial blocks

svn commit: r291656 - stable/9/sys/netsmb

2015-12-02 Thread Rick Macklem
Author: rmacklem Date: Wed Dec 2 21:56:01 2015 New Revision: 291656 URL: https://svnweb.freebsd.org/changeset/base/291656 Log: MFC: r291035 The problem report was for a crash that happened when smbfs was trying to do a mount. Given the backtrace, it appears that the crash occurred when

svn commit: r291655 - stable/10/sys/netsmb

2015-12-02 Thread Rick Macklem
Author: rmacklem Date: Wed Dec 2 21:48:34 2015 New Revision: 291655 URL: https://svnweb.freebsd.org/changeset/base/291655 Log: MFC: r291035 The problem report was for a crash that happened when smbfs was trying to do a mount. Given the backtrace, it appears that the crash occurred when

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

2015-12-01 Thread Rick Macklem
Author: rmacklem Date: Wed Dec 2 02:47:13 2015 New Revision: 291638 URL: https://svnweb.freebsd.org/changeset/base/291638 Log: Fix the memory leak that occurs when the nfscommon.ko module is unloaded. This leak was introduced by r291527. Since the nfscommon.ko module is rarely unloaded,

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

2015-11-30 Thread Rick Macklem
Author: rmacklem Date: Mon Nov 30 22:16:30 2015 New Revision: 291535 URL: https://svnweb.freebsd.org/changeset/base/291535 Log: Document the new "-manage-gids" option for the nfsuserd daemon. This is a content change. Suggested by: jpaetzel Tested by:jpaetzel MFC after:2

svn commit: r291527 - in head/sys: fs/nfs fs/nfsserver nfs

2015-11-30 Thread Rick Macklem
Author: rmacklem Date: Mon Nov 30 21:54:27 2015 New Revision: 291527 URL: https://svnweb.freebsd.org/changeset/base/291527 Log: Add kernel support to the NFS server for the "-manage-gids" option that will be added to the nfsuserd daemon in a future commit. It modifies the cache used by

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

2015-11-30 Thread Rick Macklem
Author: rmacklem Date: Mon Nov 30 22:11:34 2015 New Revision: 291534 URL: https://svnweb.freebsd.org/changeset/base/291534 Log: Add support for the "-manage-gids" option to the nfsuserd daemon. When this option is set, the NFS server uses the list of groups acquired via getgrouplist(3) for

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

2015-11-30 Thread Rick Macklem
Author: rmacklem Date: Tue Dec 1 02:35:12 2015 New Revision: 291552 URL: https://svnweb.freebsd.org/changeset/base/291552 Log: MFC: r290970 mnt_stat.f_iosize (which is used to set bo_bsize) must be set to the largest size of buffer cache block or the mapping of the buffer is bogus. When

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

2015-11-30 Thread Rick Macklem
Author: rmacklem Date: Tue Dec 1 02:30:41 2015 New Revision: 291551 URL: https://svnweb.freebsd.org/changeset/base/291551 Log: MFC: r290970 mnt_stat.f_iosize (which is used to set bo_bsize) must be set to the largest size of buffer cache block or the mapping of the buffer is bogus. When

svn commit: r291537 - head/sys/sys

2015-11-30 Thread Rick Macklem
Author: rmacklem Date: Mon Nov 30 22:35:53 2015 New Revision: 291537 URL: https://svnweb.freebsd.org/changeset/base/291537 Log: Bump __FreeBSD_version since r291527 changes the interface between the nfsd.ko and nfscommon.ko modules. As such, both modules need to be upgraded to-gether.

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

2015-11-30 Thread Rick Macklem
Author: rmacklem Date: Mon Nov 30 23:37:09 2015 New Revision: 291544 URL: https://svnweb.freebsd.org/changeset/base/291544 Log: Delete the TUNABLE_INT() line. It was in r291527 so that it could be MFC'd to stable/10 and still work. Modified: head/sys/fs/nfs/nfs_commonport.c Modified:

svn commit: r291536 - in head/etc: defaults rc.d

2015-11-30 Thread Rick Macklem
Author: rmacklem Date: Mon Nov 30 22:29:11 2015 New Revision: 291536 URL: https://svnweb.freebsd.org/changeset/base/291536 Log: Add support for the new "-manage-gids" option for the nfsuserd daemon to the rc scripts. With these changes, setting nfs_server_managegids="YES" in /etc/rc.conf

svn commit: r291538 - head

2015-11-30 Thread Rick Macklem
Author: rmacklem Date: Mon Nov 30 22:46:34 2015 New Revision: 291538 URL: https://svnweb.freebsd.org/changeset/base/291538 Log: Document the __FreeBSD_version bump done for r291527 in UPDATING. Modified: head/UPDATING Modified: head/UPDATING

svn commit: r291489 - stable/10/sys/netsmb

2015-11-30 Thread Rick Macklem
Author: rmacklem Date: Mon Nov 30 13:46:22 2015 New Revision: 291489 URL: https://svnweb.freebsd.org/changeset/base/291489 Log: MFC: r290959 When the smbfs iod thread (smb_iod_thread()) is shutting down, smb_iod_destroy() would call smb_iod_request(). This call could return as soon as the

svn commit: r291490 - stable/9/sys/netsmb

2015-11-30 Thread Rick Macklem
Author: rmacklem Date: Mon Nov 30 14:35:35 2015 New Revision: 291490 URL: https://svnweb.freebsd.org/changeset/base/291490 Log: MFC: r290959 When the smbfs iod thread (smb_iod_thread()) is shutting down, smb_iod_destroy() would call smb_iod_request(). This call could return as soon as the

svn commit: r291150 - in head/sys/fs: nfs nfsserver

2015-11-21 Thread Rick Macklem
Author: rmacklem Date: Sat Nov 21 23:55:46 2015 New Revision: 291150 URL: https://svnweb.freebsd.org/changeset/base/291150 Log: When the nfsd threads are terminated, the NFSv4 server state (opens, locks, etc) is retained, which I believe is correct behaviour. However, for NFSv4.1, the

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

2015-11-20 Thread Rick Macklem
Author: rmacklem Date: Sat Nov 21 00:15:41 2015 New Revision: 291117 URL: https://svnweb.freebsd.org/changeset/base/291117 Log: Revert r283330 since it broke directory caching in the client. At this time I cannot see a way to fix directory caching when it has partial blocks in the buffer

svn commit: r291035 - head/sys/netsmb

2015-11-18 Thread Rick Macklem
Author: rmacklem Date: Wed Nov 18 23:04:01 2015 New Revision: 291035 URL: https://svnweb.freebsd.org/changeset/base/291035 Log: The problem report was for a crash that happened when smbfs was trying to do a mount. Given the backtrace, it appears that the crash occurred when smb_vc_create()

svn commit: r290959 - head/sys/netsmb

2015-11-16 Thread Rick Macklem
Author: rmacklem Date: Mon Nov 16 23:19:53 2015 New Revision: 290959 URL: https://svnweb.freebsd.org/changeset/base/290959 Log: When the smbfs iod thread (smb_iod_thread()) is shutting down, smb_iod_destroy() would call smb_iod_request(). This call could return as soon as the wakeup(evp)

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

2015-11-16 Thread Rick Macklem
Author: rmacklem Date: Tue Nov 17 01:44:26 2015 New Revision: 290970 URL: https://svnweb.freebsd.org/changeset/base/290970 Log: mnt_stat.f_iosize (which is used to set bo_bsize) must be set to the largest size of buffer cache block or the mapping of the buffer is bogus. When a mount with

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

2015-08-28 Thread Rick Macklem
Author: rmacklem Date: Fri Aug 28 22:42:37 2015 New Revision: 287267 URL: https://svnweb.freebsd.org/changeset/base/287267 Log: MFC: r286790 For the case where an NFSv4.1 ExchangeID operation has the client identifier that already has a confirmed ClientID, the nfsrv_setclient() function

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

2015-08-14 Thread Rick Macklem
Author: rmacklem Date: Fri Aug 14 22:02:14 2015 New Revision: 286790 URL: https://svnweb.freebsd.org/changeset/base/286790 Log: For the case where an NFSv4.1 ExchangeID operation has the client identifier that already has a confirmed ClientID, the nfsrv_setclient() function would not fill

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

2015-08-10 Thread Rick Macklem
Author: rmacklem Date: Mon Aug 10 22:26:14 2015 New Revision: 286607 URL: https://svnweb.freebsd.org/changeset/base/286607 Log: MFC: r285113 If a principal argument isn't provided for a Kerberized NFS mount, the kernel would generate a bogus one with a :/path suffix. This would only occur

svn commit: r286608 - stable/9/sbin/mount_nfs

2015-08-10 Thread Rick Macklem
Author: rmacklem Date: Mon Aug 10 22:30:13 2015 New Revision: 286608 URL: https://svnweb.freebsd.org/changeset/base/286608 Log: MFC: r285260 Since the case where secflavor 0 indicates the security flavor is to be negotiated, it could be a Kerberized mount. As such, filling in the

svn commit: r286559 - stable/9/sbin/umount

2015-08-09 Thread Rick Macklem
Author: rmacklem Date: Sun Aug 9 22:29:10 2015 New Revision: 286559 URL: https://svnweb.freebsd.org/changeset/base/286559 Log: MFC: r284531 Document that a forced dismount of an NFSv3 mount when the NLM (rpc.lockd) is running can crash the system. Unfortunately this is not easy to fix,

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

2015-08-09 Thread Rick Macklem
Author: rmacklem Date: Sun Aug 9 22:33:51 2015 New Revision: 286560 URL: https://svnweb.freebsd.org/changeset/base/286560 Log: MFC: r286046 This patch fixes a problem where, if the NFSv4 server has a previous unconfirmed clientid structure for the same client on the last hash list, this

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

2015-08-09 Thread Rick Macklem
Author: rmacklem Date: Sun Aug 9 22:07:52 2015 New Revision: 286558 URL: https://svnweb.freebsd.org/changeset/base/286558 Log: MFC: r283273 The NFS client wasn't handling getdirentries(2) requests for sizes that are not an exact multiple of DIRBLKSIZ correctly. Fortunately readdir(3)

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

2015-08-08 Thread Rick Macklem
Author: rmacklem Date: Sat Aug 8 22:06:07 2015 New Revision: 286483 URL: https://svnweb.freebsd.org/changeset/base/286483 Log: MFC: r285260 Since the case where secflavor 0 indicates the security flavor is to be negotiated, it could be a Kerberized mount. As such, filling in the

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

2015-08-01 Thread Rick Macklem
Author: rmacklem Date: Sat Aug 1 22:56:42 2015 New Revision: 286164 URL: https://svnweb.freebsd.org/changeset/base/286164 Log: MFC: r286046 This patch fixes a problem where, if the NFSv4 server has a previous unconfirmed clientid structure for the same client on the last hash list, this

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

2015-07-31 Thread Rick Macklem
Author: rmacklem Date: Fri Jul 31 21:31:58 2015 New Revision: 286141 URL: https://svnweb.freebsd.org/changeset/base/286141 Log: MFC: r285113 If a principal argument isn't provided for a Kerberized NFS mount, the kernel would generate a bogus one with a :/path suffix. This would only occur

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

2015-07-29 Thread Rick Macklem
Author: rmacklem Date: Wed Jul 29 23:06:30 2015 New Revision: 286046 URL: https://svnweb.freebsd.org/changeset/base/286046 Log: This patch fixes a problem where, if the NFSv4 server has a previous unconfirmed clientid structure for the same client on the last hash list, this old entry would

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

2015-07-26 Thread Rick Macklem
Author: rmacklem Date: Mon Jul 27 00:28:51 2015 New Revision: 285904 URL: https://svnweb.freebsd.org/changeset/base/285904 Log: MFC: r285066 Alex Burlyga reported a POLA violation for the new NFS client as compared to the old NFS client via email to the freebsd-fs@ mailing list. For the

svn commit: r285260 - head/sbin/mount_nfs

2015-07-07 Thread Rick Macklem
Author: rmacklem Date: Tue Jul 7 23:41:25 2015 New Revision: 285260 URL: https://svnweb.freebsd.org/changeset/base/285260 Log: Since the case where secflavor 0 indicates the security flavor is to be negotiated, it could be a Kerberized mount. As such, filling in the principal argument

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

2015-07-03 Thread Rick Macklem
Author: rmacklem Date: Fri Jul 3 22:11:07 2015 New Revision: 285113 URL: https://svnweb.freebsd.org/changeset/base/285113 Log: If a principal argument isn't provided for a Kerberized NFS mount, the kernel would generate a bogus one with a :/path suffix. This would only occur for the case

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

2015-07-02 Thread Rick Macklem
Author: rmacklem Date: Fri Jul 3 01:15:21 2015 New Revision: 285066 URL: https://svnweb.freebsd.org/changeset/base/285066 Log: Alex Burlyga reported a POLA violation for the new NFS client as compared to the old NFS client via email to the freebsd-fs@ mailing list. For the new client, when

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

2015-06-20 Thread Rick Macklem
Author: rmacklem Date: Sat Jun 20 23:15:57 2015 New Revision: 284652 URL: https://svnweb.freebsd.org/changeset/base/284652 Log: MFC: r284531 Document that a forced dismount of an NFSv3 mount when the NLM (rpc.lockd) is running can crash the system. Unfortunately this is not easy to fix,

svn commit: r284531 - head/sbin/umount

2015-06-17 Thread Rick Macklem
Author: rmacklem Date: Wed Jun 17 23:24:46 2015 New Revision: 284531 URL: https://svnweb.freebsd.org/changeset/base/284531 Log: Document that a forced dismount of an NFSv3 mount when the NLM (rpc.lockd) is running can crash the system. Unfortunately this is not easy to fix, but I have left

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

2015-06-12 Thread Rick Macklem
Author: rmacklem Date: Fri Jun 12 22:05:04 2015 New Revision: 284334 URL: https://svnweb.freebsd.org/changeset/base/284334 Log: MFC: r283753 Make the NFS server use shared vnode locks for a few cases that are allowed by the VFS/VOP interface instead of using exclusive locks. Modified:

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