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

2009-06-20 Thread Rick Macklem
Author: rmacklem Date: Sat Jun 20 17:11:07 2009 New Revision: 194541 URL: http://svn.freebsd.org/changeset/base/194541 Log: Replace RPCAUTH_UNIXGIDS with NFS_MAXGRPS so that nfscbd.c will build. Approved by: kib (mentor) Modified: head/sys/fs/nfs/nfs.h

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

2009-06-23 Thread Rick Macklem
Author: rmacklem Date: Tue Jun 23 21:48:04 2009 New Revision: 194773 URL: http://svn.freebsd.org/changeset/base/194773 Log: When mountd.c parses the nfsv4 root line(s) in /etc/exports, it allocates data structures that are never linked into the tree or free'd. As such, mountd would leak

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

2009-06-24 Thread Rick Macklem
Author: rmacklem Date: Wed Jun 24 18:30:14 2009 New Revision: 194878 URL: http://svn.freebsd.org/changeset/base/194878 Log: If the initial attempt to refresh credentials in the RPCSEC_GSS client side fails, the entry in the cache is left with no valid context (gd_ctx == GSS_C_NO_CONTEXT).

svn commit: r194934 - head/sys/rpc

2009-06-24 Thread Rick Macklem
Author: rmacklem Date: Thu Jun 25 00:28:43 2009 New Revision: 194934 URL: http://svn.freebsd.org/changeset/base/194934 Log: Fix two known problems in clnt_rc.c, plus issues w.r.t. smp noted during reading of the code. Change the code so that it never accesses rc_connecting, rc_closed or

svn commit: r195245 - head/sys/rpc

2009-07-01 Thread Rick Macklem
Author: rmacklem Date: Wed Jul 1 16:38:18 2009 New Revision: 195245 URL: http://svn.freebsd.org/changeset/base/195245 Log: Make sure that cr_error is set to ESHUTDOWN when closing the connection. This is normally done by a loop in clnt_dg_close(), but requests that aren't in the pending

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

2009-07-01 Thread Rick Macklem
Author: rmacklem Date: Wed Jul 1 16:42:03 2009 New Revision: 195246 URL: http://svn.freebsd.org/changeset/base/195246 Log: When unmounting an NFS mount using sec=krb5[ip], the umount system call could get hung sleeping on gsssta if the credentials for a user that had been accessing the

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

2009-07-09 Thread Rick Macklem
Author: rmacklem Date: Thu Jul 9 19:00:29 2009 New Revision: 195510 URL: http://svn.freebsd.org/changeset/base/195510 Log: Since the nfscl_getclose() function both decremented open counts and, optionally, created a separate list of NFSv4 opens to be closed, it was possible for the

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

2009-07-12 Thread Rick Macklem
Author: rmacklem Date: Sun Jul 12 17:02:17 2009 New Revision: 195641 URL: http://svn.freebsd.org/changeset/base/195641 Log: Fix the handling of dotdot in lookup for the experimental nfs client in a manner analagous to the change in r195294 for the regular nfs client. Approved by: re

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

2009-07-14 Thread Rick Macklem
Author: rmacklem Date: Tue Jul 14 23:10:23 2009 New Revision: 195704 URL: http://svn.freebsd.org/changeset/base/195704 Log: Fix the experimental nfs client so that it does not cause a share-excl panic when doing a lookup of dotdot at the root of a server's file system. The patch avoids

svn commit: r195744 - head/sys/nfsclient

2009-07-17 Thread Rick Macklem
Author: rmacklem Date: Fri Jul 17 19:38:07 2009 New Revision: 195744 URL: http://svn.freebsd.org/changeset/base/195744 Log: Patch the regular nfs client in a manner analagous to r195704 for the experimental client. The patch avoids calling vn_lock() for the case where nfs_nget() has

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

2009-07-19 Thread Rick Macklem
Author: rmacklem Date: Sun Jul 19 16:44:26 2009 New Revision: 195762 URL: http://svn.freebsd.org/changeset/base/195762 Log: Fix two bugs in the experimental nfs client: - When the root vnode was acquired during mounting, mnt_stat.f_iosize was still set to 0, so getnewvnode() would set

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

2009-07-22 Thread Rick Macklem
Author: rmacklem Date: Wed Jul 22 14:32:28 2009 New Revision: 195819 URL: http://svn.freebsd.org/changeset/base/195819 Log: When using an NFSv4 mount in the experimental nfs client with delegations being issued from the server, there was a case where an Open issued locally based on the

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

2009-07-22 Thread Rick Macklem
Author: rmacklem Date: Wed Jul 22 14:37:53 2009 New Revision: 195821 URL: http://svn.freebsd.org/changeset/base/195821 Log: Add changes to the experimental nfs client to use the PBDRY flag for msleep(9) when a vnode lock or similar may be held. The changes are just a clone of the changes

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

2009-07-22 Thread Rick Macklem
Author: rmacklem Date: Wed Jul 22 18:10:44 2009 New Revision: 195825 URL: http://svn.freebsd.org/changeset/base/195825 Log: When vfs.newnfs.callback_addr is set to an IPv4 address, the experimental NFSv4 client might try and use it as an IPv6 address, breaking callbacks. The fix simply

svn commit: r195942 - head/sbin/mount_nfs

2009-07-29 Thread Rick Macklem
Author: rmacklem Date: Wed Jul 29 14:44:09 2009 New Revision: 195942 URL: http://svn.freebsd.org/changeset/base/195942 Log: Delete the descriptions of the gssname and allgssname optionss from mount_nfs.8 since these options are not implemented in FreeBSD8. This is content change for the man

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

2009-07-29 Thread Rick Macklem
Author: rmacklem Date: Wed Jul 29 14:50:31 2009 New Revision: 195943 URL: http://svn.freebsd.org/changeset/base/195943 Log: Fix the experimental nfs client so that it only calls ncl_vinvalbuf() for NFSv2 and not NFSv4 when nfscl_mustflush() returns 0. Since nfscl_mustflush() only returns 0

svn commit: r196149 - head/sys/xdr

2009-08-12 Thread Rick Macklem
Author: rmacklem Date: Wed Aug 12 16:27:51 2009 New Revision: 196149 URL: http://svn.freebsd.org/changeset/base/196149 Log: Add a check for a NULL mbuf ptr at the beginning of xdrmbuf_inline() so that it returns failure instead of crashing when m-m_len is executed and m == NULL. The mbuf

svn commit: r196153 - in stable/8/sys: . amd64/include/xen cddl/contrib/opensolaris contrib/dev/acpica contrib/pf dev/ata dev/cxgb dev/sound/usb dev/usb dev/usb/controller dev/usb/input dev/usb/mis...

2009-08-12 Thread Rick Macklem
Author: rmacklem Date: Wed Aug 12 20:30:27 2009 New Revision: 196153 URL: http://svn.freebsd.org/changeset/base/196153 Log: MFC r196149: Add a check for a NULL mbuf ptr at the beginning of xdrmbuf_inline() so that it returns failure instead of crashing when m-m_len is executed and m

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

2009-08-17 Thread Rick Macklem
Author: rmacklem Date: Mon Aug 17 16:12:28 2009 New Revision: 196332 URL: http://svn.freebsd.org/changeset/base/196332 Log: Apply the same patch as r196205 for nfs_upgrade_lock() and nfs_downgrade_lock() to the experimental nfs client. Approved by: re (kensmith), kib (mentor) Modified:

svn commit: r196341 - in stable/8/sys: . amd64/include/xen cddl/contrib/opensolaris contrib/dev/acpica contrib/pf dev/mfi dev/xen/xenpci fs/nfsclient

2009-08-17 Thread Rick Macklem
Author: rmacklem Date: Mon Aug 17 18:11:50 2009 New Revision: 196341 URL: http://svn.freebsd.org/changeset/base/196341 Log: MFC r196332: Apply the same patch as r196205 for nfs_upgrade_lock() and nfs_downgrade_lock() to the experimental nfs client. Approved by: re (kensmith), kib

svn commit: r197048 - in head/sys: fs/nfsclient nfsclient

2009-09-09 Thread Rick Macklem
Author: rmacklem Date: Wed Sep 9 20:37:49 2009 New Revision: 197048 URL: http://svn.freebsd.org/changeset/base/197048 Log: Add LK_NOWITNESS to the vn_lock() calls done on newly created nfs vnodes, since these nodes are not linked into the mount queue and, as such, the vn_lock() cannot

svn commit: r197192 - in stable/8/sys: . amd64/include/xen cddl/contrib/opensolaris contrib/dev/acpica contrib/pf dev/coretemp dev/xen/xenpci fs/nfsclient nfsclient

2009-09-14 Thread Rick Macklem
Author: rmacklem Date: Mon Sep 14 15:16:17 2009 New Revision: 197192 URL: http://svn.freebsd.org/changeset/base/197192 Log: MFC r197048: Add LK_NOWITNESS to the vn_lock() calls done on newly created nfs vnodes, since these nodes are not linked into the mount queue and, as such, the

svn commit: r197298 - head/sbin/mount_nfs

2009-09-17 Thread Rick Macklem
Author: rmacklem Date: Thu Sep 17 19:08:15 2009 New Revision: 197298 URL: http://svn.freebsd.org/changeset/base/197298 Log: Change the default transport protocol for use by the Mount protocol from UDP to TCP, so that it is consistent with TCP for NFS, which became the default at r176198.

Re: svn commit: r197298 - head/sbin/mount_nfs

2009-09-18 Thread Rick Macklem
On Fri, 18 Sep 2009, John Baldwin wrote: Rick Macklem wrote: Author: rmacklem Date: Thu Sep 17 19:08:15 2009 New Revision: 197298 URL: http://svn.freebsd.org/changeset/base/197298 Log: Change the default transport protocol for use by the Mount protocol from UDP to TCP, so

Re: svn commit: r197298 - head/sbin/mount_nfs

2009-09-19 Thread Rick Macklem
On Sat, 19 Sep 2009, John Baldwin wrote: It happens that it still uses UDP for Portmapper by default and when tcp is specified, but that is down inside the libc functions and there are comments in them along the lines of always use UDP first..., so I don't intend to change those. Hmm, it

Re: svn commit: r197298 - head/sbin/mount_nfs

2009-09-20 Thread Rick Macklem
On Sat, 19 Sep 2009, M. Warner Losh wrote: : : Hmm, it might actually be nice to be able to change those at some point : as well. I have looked at this in the past and it is quite deeply : buried in libc. :-/ What's the benefit for forcing a tcp connection for the portmapper RPCs? They

Re: svn commit: r197298 - head/sbin/mount_nfs

2009-09-20 Thread Rick Macklem
On Sun, 20 Sep 2009, M. Warner Losh wrote: In message: pine.gso.4.63.0909201722330.22...@muncher.cs.uoguelph.ca Rick Macklem rmack...@uoguelph.ca writes: : : : On Sat, 19 Sep 2009, M. Warner Losh wrote: : : : : : Hmm, it might actually be nice to be able to change those at some

Re: svn commit: r197298 - head/sbin/mount_nfs

2009-09-21 Thread Rick Macklem
On Mon, 21 Sep 2009, Daniel O'Connor wrote: [good stuff snipped] : : The thought of doing NFS over the internet boggles my mind :) [more stuff snipped] Just fyi, NFSv4 avoids all of this by doing everything via NFS over TCP to port 2049. Unless someone stands up and thinks that it isn't

Re: svn commit: r197995 - in head/kerberos5/lib: libgssapi_krb5 libgssapi_spnego

2009-10-12 Thread Rick Macklem
On Mon, 12 Oct 2009, Alexander Nedotsukov wrote: Author: bland (ports committer) Date: Mon Oct 12 17:10:51 2009 New Revision: 197995 URL: http://svn.freebsd.org/changeset/base/197995 Log: Link GSS mechanics modules against libgssapi so they will not fail due unresolved symbol errors when

svn commit: r198150 - stable/8/sbin/mount_nfs

2009-10-15 Thread Rick Macklem
Author: rmacklem Date: Thu Oct 15 19:50:00 2009 New Revision: 198150 URL: http://svn.freebsd.org/changeset/base/198150 Log: MFC r197298: Change the default transport protocol for use by the Mount protocol and the NFS Null RPC done by mount_nfs from UDP to TCP, so that it is consistent

svn commit: r199053 - head/sys/rpc

2009-11-08 Thread Rick Macklem
Author: rmacklem Date: Sun Nov 8 19:02:13 2009 New Revision: 199053 URL: http://svn.freebsd.org/changeset/base/199053 Log: Add a check for the connection being shut down to the krpc client just before queuing a request for the connection. The code already had a check for the connection

svn commit: r199293 - stable/8/sys/rpc

2009-11-15 Thread Rick Macklem
Author: rmacklem Date: Sun Nov 15 19:26:06 2009 New Revision: 199293 URL: http://svn.freebsd.org/changeset/base/199293 Log: MFC: r199053 Add a check for the connection being shut down to the krpc client just before queuing a request for the connection. The code already had a check for the

svn commit: r206357 - stable/8/sys/fs/nfs

2010-04-07 Thread Rick Macklem
Author: rmacklem Date: Wed Apr 7 15:19:52 2010 New Revision: 206357 URL: http://svn.freebsd.org/changeset/base/206357 Log: MFC: r205572 Fix the experimental NFS subsystem so that it uses the correct preprocessor macro name for not requiring strict data alignment. Modified:

svn commit: r206406 - stable/8/sys/nfsserver

2010-04-08 Thread Rick Macklem
Author: rmacklem Date: Fri Apr 9 01:14:39 2010 New Revision: 206406 URL: http://svn.freebsd.org/changeset/base/206406 Log: MFC: r205661 Patch the regular NFS server so that it returns ESTALE to the client for all errors returned by VFS_FHTOVP(). This is required to ensure that EIO

svn commit: r206585 - in stable/8/sys/fs: nfs nfsserver

2010-04-13 Thread Rick Macklem
Author: rmacklem Date: Wed Apr 14 03:13:02 2010 New Revision: 206585 URL: http://svn.freebsd.org/changeset/base/206585 Log: MFC: r205941 This patch should fix handling of byte range locks locally on the server for the experimental nfs server. When enabled by setting

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

2010-04-15 Thread Rick Macklem
Author: rmacklem Date: Thu Apr 15 22:57:30 2010 New Revision: 206688 URL: http://svn.freebsd.org/changeset/base/206688 Log: The experimental NFS client was not filling in recovery credentials for opens done locally in the client when a delegation for the file was held. This could cause the

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

2010-04-15 Thread Rick Macklem
Author: rmacklem Date: Thu Apr 15 23:56:05 2010 New Revision: 206690 URL: http://svn.freebsd.org/changeset/base/206690 Log: Add mutex lock calls to 2 cases in the experimental NFS client's renew thread where they were missing. MFC after:1 week Modified:

svn commit: r206691 - stable/8/sys/fs/nfsserver

2010-04-15 Thread Rick Macklem
Author: rmacklem Date: Fri Apr 16 01:39:30 2010 New Revision: 206691 URL: http://svn.freebsd.org/changeset/base/206691 Log: MFC: r206061 Add SAVENAME to the cn_flags for all cases in the experimental NFS server for the CREATE cn_nameiop where SAVESTART isn't set. I was not aware that this

svn commit: r206694 - stable/8/sys/fs/nfsserver

2010-04-15 Thread Rick Macklem
Author: rmacklem Date: Fri Apr 16 02:16:58 2010 New Revision: 206694 URL: http://svn.freebsd.org/changeset/base/206694 Log: MFC: r206063 For the experimental NFS server, add a call to free the lookup path buffer for one case where it was missing when doing mkdir. This could have

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

2010-04-18 Thread Rick Macklem
Author: rmacklem Date: Sun Apr 18 22:21:23 2010 New Revision: 206818 URL: http://svn.freebsd.org/changeset/base/206818 Log: Avoid extraneous recovery cycles in the experimental NFS client when an NFSv4 server reboots, by doing two things. 1 - Make the function that acquires a stateid for

svn commit: r206821 - stable/8/sys/fs/nfsserver

2010-04-18 Thread Rick Macklem
Author: rmacklem Date: Sun Apr 18 22:51:15 2010 New Revision: 206821 URL: http://svn.freebsd.org/changeset/base/206821 Log: MFC: r206170 Harden the experimental NFS server a little, by adding extra checks in the readdir functions for non-positive byte count arguments. For the negative

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

2010-04-19 Thread Rick Macklem
Author: rmacklem Date: Tue Apr 20 01:02:39 2010 New Revision: 206880 URL: http://svn.freebsd.org/changeset/base/206880 Log: For the experimental NFS client doing an NFSv4 mount, set the NFSCLFLAGS_RECVRINPROG while doing recovery from an expired lease in a manner similar to r206818 for

svn commit: r206882 - stable/8/sys/fs/nfsserver

2010-04-19 Thread Rick Macklem
Author: rmacklem Date: Tue Apr 20 01:25:18 2010 New Revision: 206882 URL: http://svn.freebsd.org/changeset/base/206882 Log: MFC: r206236 Harden the experimental NFS server a little, by adding range checks on the length of the client's open/lock owner name. Also, add free()'s for one case

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

2010-04-22 Thread Rick Macklem
Author: rmacklem Date: Thu Apr 22 23:51:01 2010 New Revision: 207082 URL: http://svn.freebsd.org/changeset/base/207082 Log: When the experimental NFS client is handling an NFSv4 server reboot with delegations enabled, the recovery could fail if the renew thread is trying to return a

svn commit: r207085 - in stable/8/sys/fs: nfs nfsclient

2010-04-22 Thread Rick Macklem
Author: rmacklem Date: Fri Apr 23 00:12:23 2010 New Revision: 207085 URL: http://svn.freebsd.org/changeset/base/207085 Log: MFC: r206688 The experimental NFS client was not filling in recovery credentials for opens done locally in the client when a delegation for the file was held. This

svn commit: r207086 - stable/8/sys/fs/nfsclient

2010-04-22 Thread Rick Macklem
Author: rmacklem Date: Fri Apr 23 00:34:59 2010 New Revision: 207086 URL: http://svn.freebsd.org/changeset/base/207086 Log: MFC: r206690 Add mutex lock calls to 2 cases in the experimental NFS client's renew thread where they were missing. Modified:

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

2010-04-24 Thread Rick Macklem
Author: rmacklem Date: Sat Apr 24 22:52:14 2010 New Revision: 207170 URL: http://svn.freebsd.org/changeset/base/207170 Log: An NFSv4 server will reply NFSERR_GRACE for non-recovery RPCs during the grace period after startup. This grace period must be at least the lease duration, which is

svn commit: r207180 - in stable/8/sys/fs: nfs nfsclient

2010-04-24 Thread Rick Macklem
Author: rmacklem Date: Sun Apr 25 01:56:31 2010 New Revision: 207180 URL: http://svn.freebsd.org/changeset/base/207180 Log: MFC: r206818 Avoid extraneous recovery cycles in the experimental NFS client when an NFSv4 server reboots, by doing two things. 1 - Make the function that acquires a

svn commit: r207256 - stable/8/sys/fs/nfsclient

2010-04-26 Thread Rick Macklem
Author: rmacklem Date: Tue Apr 27 01:00:22 2010 New Revision: 207256 URL: http://svn.freebsd.org/changeset/base/207256 Log: MFC: r206880 For the experimental NFS client doing an NFSv4 mount, set the NFSCLFLAGS_RECVRINPROG while doing recovery from an expired lease in a manner similar to

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

2010-04-28 Thread Rick Macklem
Author: rmacklem Date: Wed Apr 28 23:05:42 2010 New Revision: 207349 URL: http://svn.freebsd.org/changeset/base/207349 Log: Delete a diagnostic statement that is no longer useful from the experimental NFS client. MFC after:1 week Modified: head/sys/fs/nfsclient/nfs_clrpcops.c

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

2010-04-28 Thread Rick Macklem
Author: rmacklem Date: Wed Apr 28 23:16:21 2010 New Revision: 207350 URL: http://svn.freebsd.org/changeset/base/207350 Log: For the experimental NFS client, it should always flush dirty buffers before closing the NFSv4 opens, as the comment states. This patch deletes the call to

svn commit: r207406 - in stable/8/sys/fs: nfs nfsclient

2010-04-29 Thread Rick Macklem
Author: rmacklem Date: Thu Apr 29 23:48:09 2010 New Revision: 207406 URL: http://svn.freebsd.org/changeset/base/207406 Log: MFC: r207082 When the experimental NFS client is handling an NFSv4 server reboot with delegations enabled, the recovery could fail if the renew thread is trying to

svn commit: r207455 - in stable/8/sys/fs: nfs nfsclient nfsserver

2010-04-30 Thread Rick Macklem
Author: rmacklem Date: Sat May 1 00:50:51 2010 New Revision: 207455 URL: http://svn.freebsd.org/changeset/base/207455 Log: MFC: r207170 An NFSv4 server will reply NFSERR_GRACE for non-recovery RPCs during the grace period after startup. This grace period must be at least the lease

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

2010-05-05 Thread Rick Macklem
Author: rmacklem Date: Thu May 6 00:24:08 2010 New Revision: 207689 URL: http://svn.freebsd.org/changeset/base/207689 Log: If the -alldirs export option was used for the V4: line, mountd would crash in check_options() since dp == NULL for the V4: line. This patch moves the check for

svn commit: r207690 - stable/8/sys/fs/nfsclient

2010-05-05 Thread Rick Macklem
Author: rmacklem Date: Thu May 6 00:49:10 2010 New Revision: 207690 URL: http://svn.freebsd.org/changeset/base/207690 Log: MFC: r207349 Delete a diagnostic statement that is no longer useful from the experimental NFS client. Modified: stable/8/sys/fs/nfsclient/nfs_clrpcops.c Directory

svn commit: r207691 - stable/8/sys/fs/nfsclient

2010-05-05 Thread Rick Macklem
Author: rmacklem Date: Thu May 6 01:08:36 2010 New Revision: 207691 URL: http://svn.freebsd.org/changeset/base/207691 Log: MFC: r207350 For the experimental NFS client, it should always flush dirty buffers before closing the NFSv4 opens, as the comment states. This patch deletes the call

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

2010-05-07 Thread Rick Macklem
Author: rmacklem Date: Sat May 8 01:24:18 2010 New Revision: 207764 URL: http://svn.freebsd.org/changeset/base/207764 Log: Patch the experimental NFS client so that it works for NFSv2 by adding the necessary mapping from NFSv3 procedure numbers to NFSv2 procedure numbers when doing NFSv2

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

2010-05-08 Thread Rick Macklem
Author: rmacklem Date: Sat May 8 14:50:12 2010 New Revision: 207785 URL: http://svn.freebsd.org/changeset/base/207785 Log: Fix typos in macros. PR: kern/146375 Submitted by: simon AT comsys.ntu-kpi.kiev.ua MFC after:1 week Modified: head/sys/fs/nfs/nfskpiport.h

svn commit: r208176 - stable/8/usr.sbin/mountd

2010-05-16 Thread Rick Macklem
Author: rmacklem Date: Mon May 17 01:18:12 2010 New Revision: 208176 URL: http://svn.freebsd.org/changeset/base/208176 Log: MFC: r207689 If the -alldirs export option was used for the V4: line, mountd would crash in check_options() since dp == NULL for the V4: line. This patch moves the

svn commit: r208177 - stable/8/sys/fs/nfs

2010-05-16 Thread Rick Macklem
Author: rmacklem Date: Mon May 17 01:41:11 2010 New Revision: 208177 URL: http://svn.freebsd.org/changeset/base/208177 Log: MFC: r207764 Patch the experimental NFS client so that it works for NFSv2 by adding the necessary mapping from NFSv3 procedure numbers to NFSv2 procedure numbers

svn commit: r208179 - stable/8/sys/fs/nfs

2010-05-16 Thread Rick Macklem
Author: rmacklem Date: Mon May 17 02:01:22 2010 New Revision: 208179 URL: http://svn.freebsd.org/changeset/base/208179 Log: MFC: r207785 Fix typos in macros. Modified: stable/8/sys/fs/nfs/nfskpiport.h stable/8/sys/fs/nfs/nfsport.h Directory Properties: stable/8/sys/ (props changed)

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

2010-05-17 Thread Rick Macklem
Author: rmacklem Date: Mon May 17 23:55:38 2010 New Revision: 208234 URL: http://svn.freebsd.org/changeset/base/208234 Log: Add a sanity check for a negative args.fhsize to the experimental NFS client. MFC after:5 days Modified: head/sys/fs/nfsclient/nfs_clvfsops.c Modified:

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

2010-05-17 Thread Rick Macklem
Author: rmacklem Date: Tue May 18 05:18:21 2010 New Revision: 208254 URL: http://svn.freebsd.org/changeset/base/208254 Log: Allow the experimental NFSv4 client to use cached attributes when a write delegation is held. Also, add a missing mtx_unlock() call for the ACL debugging code.

svn commit: r208408 - stable/8/sys/fs/nfsclient

2010-05-21 Thread Rick Macklem
Author: rmacklem Date: Sat May 22 01:01:59 2010 New Revision: 208408 URL: http://svn.freebsd.org/changeset/base/208408 Log: MFC: r208234 Add a sanity check for a negative args.fhsize to the experimental NFS client. Modified: stable/8/sys/fs/nfsclient/nfs_clvfsops.c Directory Properties:

svn commit: r208432 - stable/8/sys/fs/nfsclient

2010-05-22 Thread Rick Macklem
Author: rmacklem Date: Sun May 23 02:55:59 2010 New Revision: 208432 URL: http://svn.freebsd.org/changeset/base/208432 Log: MFC: r208254 Allow the experimental NFSv4 client to use cached attributes when a write delegation is held. Also, add a missing mtx_unlock() call for the ACL

svn commit: r209191 - in head/sys/fs: nfsclient nfsserver

2010-06-14 Thread Rick Macklem
Author: rmacklem Date: Tue Jun 15 00:25:04 2010 New Revision: 209191 URL: http://svn.freebsd.org/changeset/base/209191 Log: Add MODULE_DEPEND() macros to the experimental NFS client and server so that the modules will load when kernels are built with none of the NFS* configuration options

svn commit: r209409 - in stable/8/sys/fs: nfsclient nfsserver

2010-06-21 Thread Rick Macklem
Author: rmacklem Date: Tue Jun 22 01:30:46 2010 New Revision: 209409 URL: http://svn.freebsd.org/changeset/base/209409 Log: MFC: r209191 Add MODULE_DEPEND() macros to the experimental NFS client and server so that the modules will load when kernels are built with none of the NFS*

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

2010-07-13 Thread Rick Macklem
Author: rmacklem Date: Tue Jul 13 22:44:14 2010 New Revision: 210030 URL: http://svn.freebsd.org/changeset/base/210030 Log: Fix a bogus comment that mentions lru lists that don't exist. Reported by: zack.kirsch at isilon.com MFC after:2 weeks Modified:

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

2010-07-13 Thread Rick Macklem
Author: rmacklem Date: Tue Jul 13 23:07:32 2010 New Revision: 210032 URL: http://svn.freebsd.org/changeset/base/210032 Log: For the experimental NFSv4 client, do not use cached attributes that were invalidated, even when a delegation for the file is held. MFC after:2 weeks Modified:

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

2010-07-13 Thread Rick Macklem
Author: rmacklem Date: Tue Jul 13 23:14:39 2010 New Revision: 210034 URL: http://svn.freebsd.org/changeset/base/210034 Log: For the experimental NFSv4 client, make sure that attributes that predate the issue of a delegation are not cached once the delegation is held. This is necessary,

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

2010-07-14 Thread Rick Macklem
Author: rmacklem Date: Thu Jul 15 03:02:10 2010 New Revision: 210102 URL: http://svn.freebsd.org/changeset/base/210102 Log: This patch fixes a bug in the experimental NFSv4 server where it released a reference count on nfsv4rootfs_lock erroneously when administrative revocation of state was

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

2010-07-15 Thread Rick Macklem
Author: rmacklem Date: Fri Jul 16 01:44:49 2010 New Revision: 210154 URL: http://svn.freebsd.org/changeset/base/210154 Log: Delete comments related to soft clock interrupts that don't apply to the FreeBSD port of the experimental NFSv4 server. Submitted by: zack.kirsch at isilon.com

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

2010-07-16 Thread Rick Macklem
Author: rmacklem Date: Fri Jul 16 23:17:05 2010 New Revision: 210178 URL: http://svn.freebsd.org/changeset/base/210178 Log: Patch the experimental NFSv4 server so that it acquires a reference count on nfsv4rootfs_lock when dumping state, since these functions are not called by nfsd threads.

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

2010-07-17 Thread Rick Macklem
Author: rmacklem Date: Sun Jul 18 00:24:01 2010 New Revision: 210201 URL: http://svn.freebsd.org/changeset/base/210201 Log: Change the nfscl_mustflush() function in the experimental NFSv4 client to return a boolean_t in order to make it more compatible with style(9). MFC after:2

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

2010-07-18 Thread Rick Macklem
Author: rmacklem Date: Sun Jul 18 22:35:46 2010 New Revision: 210227 URL: http://svn.freebsd.org/changeset/base/210227 Log: Add a call to nfscl_mustflush() in nfs_close() of the experimental NFSv4 client, so that attributes are not acquired from the server when a delegation for the file is

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

2010-07-19 Thread Rick Macklem
Author: rmacklem Date: Mon Jul 19 23:33:42 2010 New Revision: 210268 URL: http://svn.freebsd.org/changeset/base/210268 Log: For the experimental NFSv4 server's dumplocks operation, add the MPSAFE flag to cn_flags so that it doesn't panic. The panics weren't seen since nfsdumpstate(8) is

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

2010-07-19 Thread Rick Macklem
Author: rmacklem Date: Tue Jul 20 00:32:11 2010 New Revision: 210272 URL: http://svn.freebsd.org/changeset/base/210272 Log: Fix handling of the -l argument for nfsdumpstate(8). Submitted by: zack.kirsch at isilon.com MFC after:2 weeks Modified:

svn commit: r210455 - in head/sys: conf fs/nfsclient modules modules/nfscl modules/nfsclient modules/nfslock nfs nfsclient

2010-07-24 Thread Rick Macklem
Author: rmacklem Date: Sat Jul 24 22:11:11 2010 New Revision: 210455 URL: http://svn.freebsd.org/changeset/base/210455 Log: Move sys/nfsclient/nfs_lock.c into sys/nfs and build it as a separate module that can be used by both the regular and experimental nfs clients. This fixes the problem

svn commit: r210456 - head/usr.sbin/rpc.lockd

2010-07-24 Thread Rick Macklem
Author: rmacklem Date: Sat Jul 24 22:16:14 2010 New Revision: 210456 URL: http://svn.freebsd.org/changeset/base/210456 Log: Fix the include path for nfs_lock.h. MFC after:2 weeks Modified: head/usr.sbin/rpc.lockd/kern.c Modified: head/usr.sbin/rpc.lockd/kern.c

svn commit: r210687 - stable/8/sys/fs/nfsserver

2010-07-31 Thread Rick Macklem
Author: rmacklem Date: Sat Jul 31 15:36:54 2010 New Revision: 210687 URL: http://svn.freebsd.org/changeset/base/210687 Log: MFC: r210030 Fix a bogus comment that mentions lru lists that don't exist. Modified: stable/8/sys/fs/nfsserver/nfs_nfsdstate.c Directory Properties: stable/8/sys/

svn commit: r210706 - stable/8/sys/fs/nfsclient

2010-07-31 Thread Rick Macklem
Author: rmacklem Date: Sun Aug 1 01:06:17 2010 New Revision: 210706 URL: http://svn.freebsd.org/changeset/base/210706 Log: MFC: r210032 For the experimental NFSv4 client, do not use cached attributes that were invalidated even when a delegation for the file is held. Modified:

svn commit: r210733 - stable/8/sys/fs/nfsserver

2010-08-01 Thread Rick Macklem
Author: rmacklem Date: Sun Aug 1 15:34:29 2010 New Revision: 210733 URL: http://svn.freebsd.org/changeset/base/210733 Log: MFC: r210102 This patch fixes a bug in the experimental NFSv4 server where it released a reference count on nfsv4rootfs_lock erroneously when administrative

svn commit: r210735 - stable/8/sys/fs/nfsserver

2010-08-01 Thread Rick Macklem
Author: rmacklem Date: Sun Aug 1 15:55:49 2010 New Revision: 210735 URL: http://svn.freebsd.org/changeset/base/210735 Log: MFC: r210154 Delete comments related to soft clock interrupts that don't apply to the FreeBSD port of the experimental NFSv4 server. Modified:

svn commit: r210739 - stable/8/sys/fs/nfsserver

2010-08-01 Thread Rick Macklem
Author: rmacklem Date: Sun Aug 1 23:36:39 2010 New Revision: 210739 URL: http://svn.freebsd.org/changeset/base/210739 Log: MFC: r210178 Patch the experimental NFSv4 server so that it acquires a reference count on nfsv4rootfs_lock when dumping state, since these functions are not called

svn commit: r210741 - stable/8/sys/fs/nfsclient

2010-08-01 Thread Rick Macklem
Author: rmacklem Date: Mon Aug 2 00:37:33 2010 New Revision: 210741 URL: http://svn.freebsd.org/changeset/base/210741 Log: MFC: r210227 Add a call to nfscl_mustflush() in nfs_close() of the experimental NFSv4 client, so that attributes are not acquired from the server when a delegation

svn commit: r202106 - stable/8/sys/fs/nfsclient

2010-01-11 Thread Rick Macklem
Author: rmacklem Date: Mon Jan 11 19:30:23 2010 New Revision: 202106 URL: http://svn.freebsd.org/changeset/base/202106 Log: MFC: r201029 When porting the experimental nfs subsystem to the FreeBSD8 krpc, I added 3 functions that were already in the experimental client under different

svn commit: r202524 - stable/8/sys/fs/nfsclient

2010-01-17 Thread Rick Macklem
Author: rmacklem Date: Sun Jan 17 20:18:59 2010 New Revision: 202524 URL: http://svn.freebsd.org/changeset/base/202524 Log: MFC: r201439 Fix three related problems in the experimental nfs client when checking for conflicts w.r.t. byte range locks for NFSv4. 1 - Return 0 instead of EACCES

svn commit: r202525 - stable/8/sys/fs/nfsserver

2010-01-17 Thread Rick Macklem
Author: rmacklem Date: Sun Jan 17 20:49:34 2010 New Revision: 202525 URL: http://svn.freebsd.org/changeset/base/202525 Log: MFC: r201442 The test for same client for the experimental nfs server over NFSv4 was broken w.r.t. byte range lock conflicts when it was the same client and the

svn commit: r202767 - head/sys/nfsclient

2010-01-21 Thread Rick Macklem
Author: rmacklem Date: Thu Jan 21 20:57:25 2010 New Revision: 202767 URL: http://svn.freebsd.org/changeset/base/202767 Log: Add a timeout for the negative name cache entries in the NFS client. This avoids a bogus negative name cache entry from persisting forever when another client creates

svn commit: r202772 - head/sbin/mount_nfs

2010-01-21 Thread Rick Macklem
Author: rmacklem Date: Thu Jan 21 21:21:00 2010 New Revision: 202772 URL: http://svn.freebsd.org/changeset/base/202772 Log: Document the negnametimeo option for mount_nfs as implemented by r202767. This is a content change. MFC after:2 weeks Modified:

svn commit: r202774 - head/sys/nfsclient

2010-01-21 Thread Rick Macklem
Author: rmacklem Date: Thu Jan 21 21:59:10 2010 New Revision: 202774 URL: http://svn.freebsd.org/changeset/base/202774 Log: Fix a typo in a comment introduced by r202767. MFC after:2 weeks Modified: head/sys/nfsclient/nfs_vnops.c Modified: head/sys/nfsclient/nfs_vnops.c

svn commit: r203072 - head/sys/nfsclient

2010-01-27 Thread Rick Macklem
Author: rmacklem Date: Wed Jan 27 15:22:20 2010 New Revision: 203072 URL: http://svn.freebsd.org/changeset/base/203072 Log: Fix a race that can occur when nfs nfsiod threads are being created. Without this patch it was possible for a different thread that calls nfs_asyncio() to snitch a

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

2010-01-28 Thread Rick Macklem
Author: rmacklem Date: Thu Jan 28 16:17:24 2010 New Revision: 203119 URL: http://svn.freebsd.org/changeset/base/203119 Log: Patch the experimental NFS client in a manner analogous to r203072 for the regular NFS client. Also, delete two fields of struct nfsmount that are not used by the

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

2010-01-31 Thread Rick Macklem
Author: rmacklem Date: Sun Jan 31 19:12:24 2010 New Revision: 203303 URL: http://svn.freebsd.org/changeset/base/203303 Log: Patch the experimental NFS client so that there is a timeout for negative name cache entries in a manner analogous to r202767 for the regular NFS client. Also, make

svn commit: r203492 - stable/8/sys/nfsclient

2010-02-04 Thread Rick Macklem
Author: rmacklem Date: Thu Feb 4 16:57:01 2010 New Revision: 203492 URL: http://svn.freebsd.org/changeset/base/203492 Log: MFC: r202767 Add a timeout for the negative name cache entries in the NFS client. This avoids a bogus negative name cache entry from persisting forever when another

svn commit: r203494 - stable/8/sbin/mount_nfs

2010-02-04 Thread Rick Macklem
Author: rmacklem Date: Thu Feb 4 17:13:38 2010 New Revision: 203494 URL: http://svn.freebsd.org/changeset/base/203494 Log: MFC: r202772 Document the negnametimeo option for mount_nfs as implemented by r202767. This is a content change. Modified: stable/8/sbin/mount_nfs/mount_nfs.8

svn commit: r203496 - stable/8/sys/nfsclient

2010-02-04 Thread Rick Macklem
Author: rmacklem Date: Thu Feb 4 17:31:34 2010 New Revision: 203496 URL: http://svn.freebsd.org/changeset/base/203496 Log: MFC: r202774 Fix a typo in a comment introduced by r202767. Modified: stable/8/sys/nfsclient/nfs_vnops.c Directory Properties: stable/8/sys/ (props changed)

svn commit: r203756 - stable/8/sys/nfsclient

2010-02-10 Thread Rick Macklem
Author: rmacklem Date: Wed Feb 10 16:16:50 2010 New Revision: 203756 URL: http://svn.freebsd.org/changeset/base/203756 Log: MFC: r203072 Fix a race that can occur when nfs nfsiod threads are being created. Without this patch it was possible for a different thread that calls nfs_asyncio()

svn commit: r203789 - stable/8/sys/fs/nfsclient

2010-02-11 Thread Rick Macklem
Author: rmacklem Date: Thu Feb 11 21:25:48 2010 New Revision: 203789 URL: http://svn.freebsd.org/changeset/base/203789 Log: MFC: r203119 Patch the experimental NFS client in a manner analogous to r203072 for the regular NFS client. Also, delete two fields of struct nfsmount that are not

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

2010-02-13 Thread Rick Macklem
Author: rmacklem Date: Sat Feb 13 23:56:19 2010 New Revision: 203848 URL: http://svn.freebsd.org/changeset/base/203848 Log: This fixes the experimental NFS server so that it won't crash in the caching code for IPv6 by fixing a typo that used the incorrect variable. It also fixes the

  1   2   3   4   5   6   7   8   9   10   >