svn commit: r350315 - in head/sys: kern sys

2019-07-24 Thread Rick Macklem
Author: rmacklem Date: Thu Jul 25 05:46:16 2019 New Revision: 350315 URL: https://svnweb.freebsd.org/changeset/base/350315 Log: Add kernel support for a Linux compatible copy_file_range(2) syscall. This patch adds support to the kernel for a Linux compatible copy_file_range(2) syscall

svn commit: r349582 - in head/sys: kern sys

2019-07-01 Thread Rick Macklem
Author: rmacklem Date: Mon Jul 1 20:41:43 2019 New Revision: 349582 URL: https://svnweb.freebsd.org/changeset/base/349582 Log: Factor out the code that does a VOP_SETATTR(size) from vn_truncate(). This patch factors the code in vn_truncate() that does the actual VOP_SETATTR() of size

svn commit: r349476 - in head/sys: kern sys

2019-06-27 Thread Rick Macklem
Author: rmacklem Date: Thu Jun 27 23:10:40 2019 New Revision: 349476 URL: https://svnweb.freebsd.org/changeset/base/349476 Log: Add non-blocking trylock variants for the rangelock functions. A future patch that will add a Linux compatible copy_file_range(2) syscall needs to be able to

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

2019-06-03 Thread Rick Macklem
Author: rmacklem Date: Mon Jun 3 23:07:46 2019 New Revision: 348591 URL: https://svnweb.freebsd.org/changeset/base/348591 Log: r348590 had mention of "-I" in a comment that no longer applied to the patch. Take "-I" out of the comment line, since the patch no longer uses the "-I" option.

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

2019-06-03 Thread Rick Macklem
Author: rmacklem Date: Mon Jun 3 22:58:51 2019 New Revision: 348590 URL: https://svnweb.freebsd.org/changeset/base/348590 Log: Modify mountd so that it incrementally updates the kernel exports upon a reload. Without this patch, mountd would delete/load all exports from the exports

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

2019-05-30 Thread Rick Macklem
Author: rmacklem Date: Fri May 31 03:13:09 2019 New Revision: 348453 URL: https://svnweb.freebsd.org/changeset/base/348453 Log: Get rid of extraneous initialization. Get rid of an extraneous initialization, mainly to keep a static analyser happy. No semantic change. PR:

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

2019-05-30 Thread Rick Macklem
Author: rmacklem Date: Fri May 31 01:28:48 2019 New Revision: 348452 URL: https://svnweb.freebsd.org/changeset/base/348452 Log: Replace a single linked list with a hash table of lists. mountd.c uses a single linked list of "struct exportlist" structures, where there is one of these for

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

2019-05-30 Thread Rick Macklem
Author: rmacklem Date: Fri May 31 00:56:31 2019 New Revision: 348451 URL: https://svnweb.freebsd.org/changeset/base/348451 Log: Clean up silly code case. This silly code segment has existed in the sources since it was brought into FreeBSD 10 years ago. I honestly have no idea why this

Re: svn commit: r347566 - in head/sys: amd64/amd64 amd64/include dev/cpuctl i386/i386 i386/include x86/include x86/x86

2019-05-15 Thread Rick Macklem
Konstantin Belousov wrote: [lots of stuff snipped] >On Wed, May 15, 2019 at 08:31:23PM +0300, Dmitry Chagin wrote: >> >> yes, you are right. thank you! but in the best tradition of the project, >> the system does not built, >> I got ar error when building static llvm library: >> ar: fatal: Symbol

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

2019-05-14 Thread Rick Macklem
Author: rmacklem Date: Tue May 14 22:00:47 2019 New Revision: 347583 URL: https://svnweb.freebsd.org/changeset/base/347583 Log: Replace global list for grouplist with list(s) for each exportlist element. In mountd.c, the grouplist structures are linked into a single global linked list

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

2019-05-11 Thread Rick Macklem
Author: rmacklem Date: Sat May 11 22:41:58 2019 New Revision: 347498 URL: https://svnweb.freebsd.org/changeset/base/347498 Log: Factor code into two new functions in preparation for a future commit. Factor code into two functions. read_exportfile() a functon which reads the exports

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

2019-05-10 Thread Rick Macklem
Author: rmacklem Date: Fri May 10 23:52:17 2019 New Revision: 347476 URL: https://svnweb.freebsd.org/changeset/base/347476 Log: Factor out some exportlist list operations into separate functions. This patch moves the code that removes and frees all exportlist elements out into a separate

Re: svn commit: r346217 - in head/sys: fs/nfs fs/nfsclient kern sys

2019-05-03 Thread Rick Macklem
Harry Schmalzbauer wrote: >Am 15.04.2019 um 03:27 schrieb Rick Macklem: >> Author: rmacklem >> Date: Mon Apr 15 01:27:15 2019 >> New Revision: 346217 >> URL: https://svnweb.freebsd.org/changeset/base/346217 >> >> Log: >>Fix the NFSv4 client to

svn commit: r346856 - head/usr.sbin/nfsdumpstate

2019-04-28 Thread Rick Macklem
Author: rmacklem Date: Sun Apr 28 22:37:59 2019 New Revision: 346856 URL: https://svnweb.freebsd.org/changeset/base/346856 Log: Add #ifdef INET6 around declaration of nbuf. It was reported that without #ifdef INET6 around the declaration of "nbuf", a build would report an unused

svn commit: r346709 - head/usr.sbin/nfsdumpstate

2019-04-25 Thread Rick Macklem
Author: rmacklem Date: Thu Apr 25 21:25:32 2019 New Revision: 346709 URL: https://svnweb.freebsd.org/changeset/base/346709 Log: Add support to nfsdumpstate for printing of INET6 addresses for locks. r346190 added support for printing of INET6 addresses for the "-o" option (all opens) but

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

2019-04-21 Thread Rick Macklem
Author: rmacklem Date: Sun Apr 21 22:53:51 2019 New Revision: 346506 URL: https://svnweb.freebsd.org/changeset/base/346506 Log: Add #ifdef INET as requested by bz@. Modified: head/sys/fs/nfs/nfs_commonsubs.c Modified: head/sys/fs/nfs/nfs_commonsubs.c

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

2019-04-19 Thread Rick Macklem
Author: rmacklem Date: Fri Apr 19 23:35:08 2019 New Revision: 346424 URL: https://svnweb.freebsd.org/changeset/base/346424 Log: Add support for the ModeSetMasked attribute to the NFSv4.1 server. I do not know of an extant NFSv4.1 client that currently does a Setattr operation for the

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

2019-04-19 Thread Rick Macklem
Author: rmacklem Date: Fri Apr 19 23:27:23 2019 New Revision: 346423 URL: https://svnweb.freebsd.org/changeset/base/346423 Log: Replace "vp" with NULL to make the code more readable. At the time of this nfsv4_sattr() call, "vp == NULL", so this patch doesn't change the semantics, but I

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

2019-04-18 Thread Rick Macklem
Author: rmacklem Date: Fri Apr 19 03:36:22 2019 New Revision: 346365 URL: https://svnweb.freebsd.org/changeset/base/346365 Log: Fix the NFSv4.0 server so that it does not support NFSv4.1 attributes. During inspection of a packet trace, I noticed that an NFSv4.0 mount reported that it

svn commit: r346217 - in head/sys: fs/nfs fs/nfsclient kern sys

2019-04-14 Thread Rick Macklem
Author: rmacklem Date: Mon Apr 15 01:27:15 2019 New Revision: 346217 URL: https://svnweb.freebsd.org/changeset/base/346217 Log: Fix the NFSv4 client to safely find processes. r340744 broke the NFSv4 client, because it replaced pfind_locked() with a call to pfind(), since pfind() acquires

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

2019-04-13 Thread Rick Macklem
Author: rmacklem Date: Sat Apr 13 23:26:02 2019 New Revision: 346192 URL: https://svnweb.freebsd.org/changeset/base/346192 Log: Fix printing of the line that starts with "LocalOpen...". When "nfsstat -E -c" was done, the title line starting with "LocalOpen..." was not being displayed.

svn commit: r346191 - in head/sys: fs/nfsserver modules/nfsd

2019-04-13 Thread Rick Macklem
Author: rmacklem Date: Sat Apr 13 22:00:09 2019 New Revision: 346191 URL: https://svnweb.freebsd.org/changeset/base/346191 Log: Add support for INET6 addresses to the kernel code that dumps open/lock state. PR#223036 reported that INET6 callback addresses were not printed by

svn commit: r346190 - head/usr.sbin/nfsdumpstate

2019-04-13 Thread Rick Macklem
Author: rmacklem Date: Sat Apr 13 21:45:45 2019 New Revision: 346190 URL: https://svnweb.freebsd.org/changeset/base/346190 Log: Fix nfsdumpstate(8) so that it can print out INET6 callback addresses. The patch adds support for printing of INET6 callback addresses. It also adds the #ifdef

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

2019-04-06 Thread Rick Macklem
Author: rmacklem Date: Sat Apr 6 22:14:03 2019 New Revision: 345995 URL: https://svnweb.freebsd.org/changeset/base/345995 Log: Delete the BUGS entry related to failing when jails are enabled. r345994 has finally fixed the bug that caused the nfsuserd(8) daemon to fail when jails were

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

2019-04-06 Thread Rick Macklem
Author: rmacklem Date: Sat Apr 6 22:05:51 2019 New Revision: 345994 URL: https://svnweb.freebsd.org/changeset/base/345994 Log: Fix nfsuserd so that it handles the mapped localhost address when jails are enabled. The nfsuserd(8) daemon does not function correctly when jails are enabled,

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

2019-04-06 Thread Rick Macklem
Author: rmacklem Date: Sat Apr 6 21:53:46 2019 New Revision: 345992 URL: https://svnweb.freebsd.org/changeset/base/345992 Log: Add INET6 support for the upcalls to the nfsuserd daemon. The kernel code uses UDP to do upcalls to the nfsuserd(8) daemon to get updates to the username<->uid

svn commit: r345898 - head

2019-04-04 Thread Rick Macklem
Author: rmacklem Date: Thu Apr 4 23:40:30 2019 New Revision: 345898 URL: https://svnweb.freebsd.org/changeset/base/345898 Log: Add an entry to UPDATING for r345895, which affects the use of nfsuserd daemons built from head sources between July 6, 2017 and Aug. 22, 2018. Modified:

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

2019-04-04 Thread Rick Macklem
Author: rmacklem Date: Thu Apr 4 23:30:27 2019 New Revision: 345895 URL: https://svnweb.freebsd.org/changeset/base/345895 Log: Revert r320698, since the related userland changes were reverted by r338192. r338192 reverted the changes to nfsuserd so that it could use an AF_LOCAL socket,

svn commit: r345866 - head/sys/rpc/rpcsec_gss

2019-04-03 Thread Rick Macklem
Author: rmacklem Date: Thu Apr 4 01:23:06 2019 New Revision: 345866 URL: https://svnweb.freebsd.org/changeset/base/345866 Log: Fix malloc stats for the RPCSEC_GSS server code when DEBUG is enabled. The code enabled when "DEBUG" is defined uses mem_alloc(), which is a malloc(.., M_RPC,

svn commit: r345828 - head/sys/rpc/rpcsec_gss

2019-04-02 Thread Rick Macklem
Author: rmacklem Date: Wed Apr 3 03:50:16 2019 New Revision: 345828 URL: https://svnweb.freebsd.org/changeset/base/345828 Log: Add a comment to the r345818 patch to explain why cl_refs is initialized to 2. PR: 235582 MFC after:2 weeks Modified:

svn commit: r345818 - head/sys/rpc/rpcsec_gss

2019-04-02 Thread Rick Macklem
Author: rmacklem Date: Tue Apr 2 23:51:08 2019 New Revision: 345818 URL: https://svnweb.freebsd.org/changeset/base/345818 Log: Fix a race in the RPCSEC_GSS server code that caused crashes. When a new client structure was allocated, it was added to the list so that it was visible to

Re: svn commit: r344758 - in head/sys/fs: nfs nfsserver

2019-03-04 Thread Rick Macklem
Cy Schubert wrote: >Sent: Monday, March 4, 2019 3:25 PM >To: Edward Napierala >Cc: Cy Schubert; Konstantin Belousov; src-committers; svn-src-...@freebsd.org; >svn-src->h...@freebsd.org >Subject: Re: svn commit: r344758 - in head/sys/fs: nfs nfsserver > >In message , Edward Napierala writes: >>

svn commit: r342287 - head

2018-12-20 Thread Rick Macklem
Author: rmacklem Date: Thu Dec 20 22:26:54 2018 New Revision: 342287 URL: https://svnweb.freebsd.org/changeset/base/342287 Log: Add an UPDATING message for r342286. Modified: head/UPDATING Modified: head/UPDATING ==

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

2018-12-20 Thread Rick Macklem
Author: rmacklem Date: Thu Dec 20 22:21:41 2018 New Revision: 342286 URL: https://svnweb.freebsd.org/changeset/base/342286 Log: Fix the NFSv4 server to obey vfs.nfsd.nfs_privport. When the NFSv4 server was coded, I believed that the specification authors did not want NFSv4 servers to

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

2018-11-22 Thread Rick Macklem
Author: rmacklem Date: Fri Nov 23 00:17:47 2018 New Revision: 340787 URL: https://svnweb.freebsd.org/changeset/base/340787 Log: Make sure the NFS readdir client fills in all "struct dirent" data. The NFS client code (nfsrpc_readdir() and nfsrpc_readdirplus()) wasn't filling in parts of

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

2018-11-19 Thread Rick Macklem
>Author: rmacklem >Date: Tue Nov 20 01:52:45 2018 >New Revision: 340661 >URL: https://svnweb.freebsd.org/changeset/base/340661 > >Log: > r304026 added code that started statistics gathering for an operation > before the operation number (the variable called "op") was sanity checked. > This

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

2018-11-19 Thread Rick Macklem
Author: rmacklem Date: Tue Nov 20 01:59:57 2018 New Revision: 340663 URL: https://svnweb.freebsd.org/changeset/base/340663 Log: Improve sanity checking for the dircount hint argument to NFSv3's ReaddirPlus and NFSv4's Readdir operations. The code checked for a zero argument, but did not

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

2018-11-19 Thread Rick Macklem
Author: rmacklem Date: Tue Nov 20 01:56:34 2018 New Revision: 340662 URL: https://svnweb.freebsd.org/changeset/base/340662 Log: nfsm_advance() would panic() when the offs argument was negative. The code assumed that this would indicate a corrupted mbuf chain, but it could simply be caused

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

2018-11-19 Thread Rick Macklem
Author: rmacklem Date: Tue Nov 20 01:52:45 2018 New Revision: 340661 URL: https://svnweb.freebsd.org/changeset/base/340661 Log: r304026 added code that started statistics gathering for an operation before the operation number (the variable called "op") was sanity checked. This patch moves

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

2018-11-06 Thread Rick Macklem
Author: rmacklem Date: Tue Nov 6 22:50:50 2018 New Revision: 340207 URL: https://svnweb.freebsd.org/changeset/base/340207 Log: Change nfs_advlock() so that the NFSVOPUNLOCK() is mostly done at the end. Prior to this patch, nfs_advlock() did NFSVOPUNLOCK(); return (error); in many

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

2018-11-01 Thread Rick Macklem
Author: rmacklem Date: Thu Nov 1 15:27:22 2018 New Revision: 33 URL: https://svnweb.freebsd.org/changeset/base/33 Log: Fix NFS client vnode locking to avoid a crash during forced dismount. A crash was reported where the crash occurred in nfs_advlock() when the NFS_ISV4(vp) macro

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

2018-10-08 Thread Rick Macklem
Author: rmacklem Date: Tue Oct 9 01:10:50 2018 New Revision: 339247 URL: https://svnweb.freebsd.org/changeset/base/339247 Log: Fix the pNFS server's reporting of disk space usage for the "#" case. The pNFS server would report the total disk space used and free for all of the DSs, even

Re: svn commit: r337776 - head/sys/netinet6

2018-08-30 Thread Rick Macklem
Sorry for the top post, but I'm on a web based email. p...@freebsd.org reported a problem w.r.t. IPv6 fragmentation when using NFS. (He switched from UDP --> TCP and the problem went away.) It's over here on freebsd-stable: http://docs.FreeBSD.org/cgi/mid.cgi?20180827155651.GW2118 I don't know if

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

2018-08-22 Thread Rick Macklem
Author: rmacklem Date: Thu Aug 23 00:05:13 2018 New Revision: 338217 URL: https://svnweb.freebsd.org/changeset/base/338217 Log: Fix the nfsuserd.8 man page for the changes made to support uid/gid numbers in owner and owner_group strings. This is a content change. Modified:

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

2018-08-22 Thread Rick Macklem
Author: rmacklem Date: Wed Aug 22 12:26:17 2018 New Revision: 338193 URL: https://svnweb.freebsd.org/changeset/base/338193 Log: Revert r320758, which was the man page update for r320757 just reverted. This is a content change. PR: 230752 Modified:

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

2018-08-22 Thread Rick Macklem
Author: rmacklem Date: Wed Aug 22 12:20:10 2018 New Revision: 338192 URL: https://svnweb.freebsd.org/changeset/base/338192 Log: Revert r320757 since it can cause "excl->shared" panics. PR#230752 shows a panic where an nfsd thread tries to do soconnect() on the AF_LOCAL socket used by the

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

2018-08-18 Thread Rick Macklem
Author: rmacklem Date: Sat Aug 18 19:14:06 2018 New Revision: 338019 URL: https://svnweb.freebsd.org/changeset/base/338019 Log: Fix LORs between vn_start_write() and vn_lock() in nfsrv_copymr(). When coding the pNFS server, I added vn_start_write() calls in nfsrv_copymr() done while the

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

2018-08-17 Thread Rick Macklem
Author: rmacklem Date: Fri Aug 17 21:12:16 2018 New Revision: 337990 URL: https://svnweb.freebsd.org/changeset/base/337990 Log: Fix LORs between vn_start_write() and vn_lock() in the pNFS server. When coding the pNFS server, I added several vn_start_write() calls done while the vnode was

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

2018-08-17 Thread Rick Macklem
Author: rmacklem Date: Fri Aug 17 12:32:38 2018 New Revision: 337962 URL: https://svnweb.freebsd.org/changeset/base/337962 Log: Don't set a file's size for the MDS file of a pNFS service. When a pNFS service is running, the size of the files created on the MDS are normally 0, since the

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

2018-08-08 Thread Rick Macklem
Author: rmacklem Date: Thu Aug 9 00:15:28 2018 New Revision: 337509 URL: https://svnweb.freebsd.org/changeset/base/337509 Log: Fix a typo plus add a couple of sentences to pnfsserver.4. This is a content change. Modified: head/usr.sbin/nfsd/pnfsserver.4 Modified:

svn commit: r337502 - head/usr.sbin/pnfsdscopymr

2018-08-08 Thread Rick Macklem
Author: rmacklem Date: Wed Aug 8 20:30:12 2018 New Revision: 337502 URL: https://svnweb.freebsd.org/changeset/base/337502 Log: Fix the err() arguments for a nfssvc(8) failure. argv has been incremented during argument handling, so elements of the array are no longer valid. Change the

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

2018-08-08 Thread Rick Macklem
Author: rmacklem Date: Wed Aug 8 20:21:45 2018 New Revision: 337501 URL: https://svnweb.freebsd.org/changeset/base/337501 Log: Assorted fixes to handling of LayoutRecall callbacks, mostly error handling. After a re-read of the appropriate section of RFC5661, I decided that a few things

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

2018-08-07 Thread Rick Macklem
Author: rmacklem Date: Tue Aug 7 21:29:14 2018 New Revision: 337438 URL: https://svnweb.freebsd.org/changeset/base/337438 Log: Allow newnfs_request() to retry all callback RPCs with an NFSERR_DELAY reply. The code in newnfs_request() retries RPCs that get a reply of NFSERR_DELAY, but

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

2018-08-05 Thread Rick Macklem
Author: rmacklem Date: Sun Aug 5 20:36:48 2018 New Revision: 337363 URL: https://svnweb.freebsd.org/changeset/base/337363 Log: Add a reference to pnfsserver.4 to the nfsd.8 man page. This is a content change. Modified: head/usr.sbin/nfsd/nfsd.8 Modified: head/usr.sbin/nfsd/nfsd.8

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

2018-08-05 Thread Rick Macklem
Author: rmacklem Date: Sun Aug 5 20:20:04 2018 New Revision: 337362 URL: https://svnweb.freebsd.org/changeset/base/337362 Log: Update the pnfs.4 man page to reference the pnfsserver.4 man page. This is a content change. Modified: head/usr.sbin/nfsd/pnfs.4 Modified:

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

2018-08-05 Thread Rick Macklem
Author: rmacklem Date: Sun Aug 5 20:15:33 2018 New Revision: 337361 URL: https://svnweb.freebsd.org/changeset/base/337361 Log: Add pnfsserver.4 to the Makefile for nfsd. Modified: head/usr.sbin/nfsd/Makefile Modified: head/usr.sbin/nfsd/Makefile

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

2018-08-05 Thread Rick Macklem
ht (c) 2018 Rick Macklem +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\"

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

2018-08-05 Thread Rick Macklem
Author: rmacklem Date: Sun Aug 5 19:21:50 2018 New Revision: 337357 URL: https://svnweb.freebsd.org/changeset/base/337357 Log: Copy all bits of a file handle in case there is padding in the structure. At least on x86, fhandle_t is a packed structure, so I believe an assignment will copy

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

2018-08-02 Thread Rick Macklem
Author: rmacklem Date: Thu Aug 2 20:10:59 2018 New Revision: 337170 URL: https://svnweb.freebsd.org/changeset/base/337170 Log: Silence newer gcc warnings. Newer versions of gcc generate "might not be initialized" warnings for several variables in nfsrpc_doiods(). I have checked and all

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

2018-07-30 Thread Rick Macklem
Author: rmacklem Date: Mon Jul 30 20:25:32 2018 New Revision: 336933 URL: https://svnweb.freebsd.org/changeset/base/336933 Log: Silence newer gcc warnings. Newer versions of gcc generate "set, but not used" warnings. Add __unused macros to silence these warnings. Although the variables

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

2018-07-29 Thread Rick Macklem
Author: rmacklem Date: Sun Jul 29 21:51:17 2018 New Revision: 336878 URL: https://svnweb.freebsd.org/changeset/base/336878 Log: Silence newer gcc warnings. Newer versions of gcc generate "set, but not used" warnings in the NFS server. Add __unused macros to silence these warnings.

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

2018-07-28 Thread Rick Macklem
Author: rmacklem Date: Sat Jul 28 20:21:04 2018 New Revision: 336839 URL: https://svnweb.freebsd.org/changeset/base/336839 Log: Modify the NFSv4.1 server so that it allows ReclaimComplete as done by ESXi 6.7. I believe that a ReclaimComplete with rca_one_fs == TRUE is only to be used

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

2018-07-27 Thread Rick Macklem
Author: rmacklem Date: Fri Jul 27 23:38:31 2018 New Revision: 336798 URL: https://svnweb.freebsd.org/changeset/base/336798 Log: Update nfsd.8 for support of IPv6 addresses for hosts in the "-p" option. r336795 adds support for handling of IPv6 addresses returned by getaddrinfo(3) for DS

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

2018-07-27 Thread Rick Macklem
Author: rmacklem Date: Fri Jul 27 23:10:28 2018 New Revision: 336795 URL: https://svnweb.freebsd.org/changeset/base/336795 Log: Add support for IPv6 addresses to the pNFS "-p" option. This patch adds code to handle IPv6 addresses returned by getaddrinfo() for the host entries in the "-p"

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

2018-07-20 Thread Rick Macklem
Author: rmacklem Date: Sat Jul 21 01:33:07 2018 New Revision: 336573 URL: https://svnweb.freebsd.org/changeset/base/336573 Log: Set CLSET_TIMEOUT on TCP connections to pNFS DSs. Use CLSET_TIMEOUT to set the timeout for connections to DSs instead of specifying a timeout on each RPC. This

svn commit: r336542 - head/sys/rpc

2018-07-20 Thread Rick Macklem
Author: rmacklem Date: Fri Jul 20 12:03:16 2018 New Revision: 336542 URL: https://svnweb.freebsd.org/changeset/base/336542 Log: Set SO_SNDTIMEO in the client side krpc when CLSET_TIMEOUT is done. During testing of the pNFS client, it was observed that an RPC could get stuck in sosend()

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

2018-07-16 Thread Rick Macklem
Author: rmacklem Date: Mon Jul 16 21:32:50 2018 New Revision: 336357 URL: https://svnweb.freebsd.org/changeset/base/336357 Log: Modify the reasons for not issuing a delegation in the NFSv4.1 server. The ESXi NFSv4.1 client will generate warning messages when the reason for not issuing a

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

2018-07-15 Thread Rick Macklem
Author: rmacklem Date: Sun Jul 15 18:54:44 2018 New Revision: 336312 URL: https://svnweb.freebsd.org/changeset/base/336312 Log: Shut down the TCP connection to a DS in the pNFS client when Renew fails. When a NFSv4.1 client mount using pNFS detects a failure trying to do a Renew

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

2018-07-14 Thread Rick Macklem
Author: rmacklem Date: Sat Jul 14 19:51:44 2018 New Revision: 336292 URL: https://svnweb.freebsd.org/changeset/base/336292 Log: Fix the pNFS client when mirrors aren't on the same machine. Without this patch, the client side NFSv4.1 pNFS code erroneously did writes and commits to both DS

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

2018-07-13 Thread Rick Macklem
Author: rmacklem Date: Fri Jul 13 20:03:05 2018 New Revision: 336260 URL: https://svnweb.freebsd.org/changeset/base/336260 Log: Close down the TCP connection to a pNFS DS when it is disabled. So long as the TCP connection to a pNFS DS isn't shared with other DSs, it can be closed down

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

2018-07-13 Thread Rick Macklem
Author: rmacklem Date: Fri Jul 13 12:39:27 2018 New Revision: 336239 URL: https://svnweb.freebsd.org/changeset/base/336239 Log: Change the pNFS client so that it does not report an NFSERR_STALE from an I/O attempt on a DS to the server via LayoutReturn. The current FreeBSD client can

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

2018-07-12 Thread Rick Macklem
Author: rmacklem Date: Thu Jul 12 20:46:22 2018 New Revision: 336229 URL: https://svnweb.freebsd.org/changeset/base/336229 Log: Modify the NFSv4.1 pNFS client to use separate TCP connections for DSs. Without this patch, the NFSv4.1 pNFS client shared a single TCP connection for all DSs

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

2018-07-11 Thread Rick Macklem
Author: rmacklem Date: Wed Jul 11 23:23:29 2018 New Revision: 336215 URL: https://svnweb.freebsd.org/changeset/base/336215 Log: Ignore the cookie verifier for NFSv4.1 when the cookie is 0. RFC5661 states that the cookie verifier should be 0 when the cookie is 0. However, the wording is

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

2018-07-10 Thread Rick Macklem
Author: rmacklem Date: Tue Jul 10 22:53:07 2018 New Revision: 336183 URL: https://svnweb.freebsd.org/changeset/base/336183 Log: Update the pnfs(4) man page. This is a content change. Modified: head/usr.sbin/nfsd/pnfs.4 Modified: head/usr.sbin/nfsd/pnfs.4

svn commit: r336177 - head/usr.sbin/pnfsdskill

2018-07-10 Thread Rick Macklem
Author: rmacklem Date: Tue Jul 10 18:44:44 2018 New Revision: 336177 URL: https://svnweb.freebsd.org/changeset/base/336177 Log: Document the "-f" option added to pnfsdskill(8) by r336176. This is a content change. Modified: head/usr.sbin/pnfsdskill/pnfsdskill.8 Modified:

svn commit: r336176 - head/usr.sbin/pnfsdskill

2018-07-10 Thread Rick Macklem
Author: rmacklem Date: Tue Jul 10 18:41:16 2018 New Revision: 336176 URL: https://svnweb.freebsd.org/changeset/base/336176 Log: Add a "-f" option to pnfsdskill(8) to force disabling of a DS. The pnfsdskill(8) command will normally fail if there is no valid mirror for the DS to be

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

2018-07-09 Thread Rick Macklem
Author: rmacklem Date: Mon Jul 9 19:58:01 2018 New Revision: 336141 URL: https://svnweb.freebsd.org/changeset/base/336141 Log: Add support for a "forced" pnfsdskill to the pNFS server kernel code. The pnfsdskill(8) command will normally fail if there is no valid mirror for the DS to be

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

2018-07-08 Thread Rick Macklem
Author: rmacklem Date: Sun Jul 8 18:15:55 2018 New Revision: 336093 URL: https://svnweb.freebsd.org/changeset/base/336093 Log: Fix the kernel part of pnfsdscopymr() to handle holes in the file being copied. If a mirrored DS is being recovered that has a lot of large sparse files,

Re: svn commit: r335967 - head/sys/dev/mxge

2018-07-07 Thread Rick Macklem
Andrew Gallatin wrote: >Given that we do TSO like Linux, and not like MS (meaning >we express the size of the pre-segmented packet using the >a 16-bit value in the IPv4/IPv6 header), supporting more >than 64K is not possible in FreeBSD, so I'm basically >saying "nerf this constraint". Well, my

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

2018-07-07 Thread Rick Macklem
Author: rmacklem Date: Sat Jul 7 19:27:49 2018 New Revision: 336075 URL: https://svnweb.freebsd.org/changeset/base/336075 Log: Fix handling of the hybrid DS case for a pNFS server. After the addition of the "#mds_path" suffix for a DS specification on the "-p" nfsd option, it is

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

2018-07-06 Thread Rick Macklem
Author: rmacklem Date: Fri Jul 6 19:18:45 2018 New Revision: 336041 URL: https://svnweb.freebsd.org/changeset/base/336041 Log: Change the pNFS server so that it does not disable a mirrored DS for an NFSERR_STALE error reported via a LayoutReturn. The current FreeBSD client can generate

Re: svn commit: r335967 - head/sys/dev/mxge

2018-07-05 Thread Rick Macklem
Andrew Gallatin wrote: On 7/4/18 9:20 PM, Rodney W. Grimes wrote: [stuff snipped] >> >> It is using a magic constant twice, where one has a >> derived value that is dependent on the value of the other. >> That is bad and error prone and does not document that >> one depends on the other. Please

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

2018-07-04 Thread Rick Macklem
Author: rmacklem Date: Wed Jul 4 19:46:26 2018 New Revision: 335968 URL: https://svnweb.freebsd.org/changeset/base/335968 Log: Fix the pNFS server so that it handles the "#mds_path" check for mirrors. The recently added feature of the pNFS server will set an fsid for the MDS file system

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

2018-07-02 Thread Rick Macklem
Author: rmacklem Date: Mon Jul 2 19:33:26 2018 New Revision: 335872 URL: https://svnweb.freebsd.org/changeset/base/335872 Log: Document the "#mds_path" suffix for the "-p" command line option. r335871 added support for an optional suffix of "#mds_path" that can be applied to each entry

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

2018-07-02 Thread Rick Macklem
Author: rmacklem Date: Mon Jul 2 19:26:31 2018 New Revision: 335871 URL: https://svnweb.freebsd.org/changeset/base/335871 Log: Add an optional feature to the pNFS server. Without this patch, the pNFS server distributes the data storage files across all of the specified DSs. A tester

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

2018-07-02 Thread Rick Macklem
Author: rmacklem Date: Mon Jul 2 19:21:33 2018 New Revision: 335870 URL: https://svnweb.freebsd.org/changeset/base/335870 Log: Add an optional feature to the pNFS server. Without this patch, the pNFS server distributes the data storage files across all of the specified DSs. A tester

svn commit: r335866 - head/sys/rpc

2018-07-02 Thread Rick Macklem
Author: rmacklem Date: Mon Jul 2 17:50:46 2018 New Revision: 335866 URL: https://svnweb.freebsd.org/changeset/base/335866 Log: Fix the server side krpc so that the kernel nfsd threads terminate. Occationally the kernel nfsd threads would not terminate when a SIGKILL was posted for the

svn commit: r335846 - head/usr.sbin/pnfsdsfile

2018-07-01 Thread Rick Macklem
Author: rmacklem Date: Sun Jul 1 17:51:52 2018 New Revision: 335846 URL: https://svnweb.freebsd.org/changeset/base/335846 Log: Document the new "-m" command line option for pnfsdsfile(8). This is a content change. Modified: head/usr.sbin/pnfsdsfile/pnfsdsfile.8 Modified:

svn commit: r335845 - head/usr.sbin/pnfsdsfile

2018-07-01 Thread Rick Macklem
Author: rmacklem Date: Sun Jul 1 17:49:02 2018 New Revision: 335845 URL: https://svnweb.freebsd.org/changeset/base/335845 Log: Add a new "-m" option to pnfsdsfile(8) to prepare a file for mirroring. When pnfsdscopymr(8) is used to create a mirror of a file on a mirrored pNFS service, it

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

2018-06-30 Thread Rick Macklem
Author: rmacklem Date: Sat Jun 30 12:14:20 2018 New Revision: 335814 URL: https://svnweb.freebsd.org/changeset/base/335814 Log: Add a safety belt assignment to the nfsd for when "-p" isn't specified. The kernel code assumes that nfsdargs.addr == NULL and nfsdargs.addrlen == 0 when there

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

2018-06-29 Thread Rick Macklem
Author: rmacklem Date: Fri Jun 29 12:41:36 2018 New Revision: 335794 URL: https://svnweb.freebsd.org/changeset/base/335794 Log: Fix the pNFS server for a case where mirror level equals number of DSs. If a pNFS service was set up where the number of DSs equals the mirror level and then a

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

2018-06-22 Thread Rick Macklem
Author: rmacklem Date: Sat Jun 23 00:48:45 2018 New Revision: 335573 URL: https://svnweb.freebsd.org/changeset/base/335573 Log: Set the slotid and ND_HASSLOTID flag for NFSv4.1 sequenced operations. Most NFSv4.1 compound RPCs start with a Sequence operation. For these cases, save the

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

2018-06-22 Thread Rick Macklem
Author: rmacklem Date: Sat Jun 23 00:37:15 2018 New Revision: 335571 URL: https://svnweb.freebsd.org/changeset/base/335571 Log: Define ND_HASSLOTID needed by r335568. r335568 uses a flag called ND_HASSLOTID to indicate that the slotid is set, so it can free and invalidate it. This flag

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

2018-06-22 Thread Rick Macklem
Author: rmacklem Date: Fri Jun 22 21:37:20 2018 New Revision: 335568 URL: https://svnweb.freebsd.org/changeset/base/335568 Log: Fix the handling of NFSv4.1 sessions for "soft" mounts. When a "soft" mount is used for NFSv4.1, an RPC that fails without completing will leave a slot in the

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

2018-06-22 Thread Rick Macklem
Author: rmacklem Date: Fri Jun 22 21:25:27 2018 New Revision: 335567 URL: https://svnweb.freebsd.org/changeset/base/335567 Log: Change the NFSv4.1 pNFS client so that it returns the DS error in layoutreturn. When the NFSv4.1 pNFS client gets an error for a DS I/O operation using a

svn commit: r335566 - head/etc/rc.d

2018-06-22 Thread Rick Macklem
Author: rmacklem Date: Fri Jun 22 20:58:51 2018 New Revision: 335566 URL: https://svnweb.freebsd.org/changeset/base/335566 Log: Add "mountcritremote" to the REQUIRE line for nfsd. For a pNFS MDS server, there must be mounts done to the DSs before the nfsd is started. Adding the REQUIRE

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

2018-06-21 Thread Rick Macklem
Author: rmacklem Date: Fri Jun 22 00:55:39 2018 New Revision: 335525 URL: https://svnweb.freebsd.org/changeset/base/335525 Log: Add a counter to limit the number of disabled DSs for a mirrored pNFS MDS. This patch adds a counter that limits the number of disabled mirrored DSs to mirror

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

2018-06-17 Thread Rick Macklem
Author: rmacklem Date: Sun Jun 17 23:08:54 2018 New Revision: 335309 URL: https://svnweb.freebsd.org/changeset/base/335309 Log: Revert r335263, since it can cause crashes in unusual circumstances. This needs to be fixed in a different way. Modified: head/sys/fs/nfs/nfs_commonkrpc.c

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

2018-06-17 Thread Rick Macklem
Author: rmacklem Date: Sun Jun 17 16:30:06 2018 New Revision: 335286 URL: https://svnweb.freebsd.org/changeset/base/335286 Log: Make the pNFS NFSv4.1 client return a Flexible File layout upon error. The Flexible File layout LayoutReturn operation has argument fields where an I/O error

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

2018-06-16 Thread Rick Macklem
Author: rmacklem Date: Sat Jun 16 19:45:06 2018 New Revision: 335263 URL: https://svnweb.freebsd.org/changeset/base/335263 Log: Fix NFSv4.1 client side handling of "soft,retrans=2" mounts. Normally "soft,retrans=2" cannot be safely used on NFSv4 mounts, since the RPC can fail and leave

<    1   2   3   4   5   6   7   8   9   >