kern/135412: [zfs] [nfs] zfs(v13)+nfs and open(..., O_WRONLY|O_CREAT|O_EXCL, ...) returns io error

Jaakko Heinonen jh at FreeBSD.org
Fri Dec 4 06:30:06 UTC 2009


The following reply was made to PR kern/135412; it has been noted by GNATS.

From: Jaakko Heinonen <jh at FreeBSD.org>
To: John Hein <jhein at symmetricom.com>
Cc: bug-followup at FreeBSD.org, danny at cs.huji.ac.il, jilles at FreeBSD.org
Subject: Re: kern/135412: [zfs] [nfs] zfs(v13)+nfs and open(...,
 O_WRONLY|O_CREAT|O_EXCL, ...) returns io error
Date: Fri, 4 Dec 2009 08:26:17 +0200

 On 2009-12-04, John Hein wrote:
 >  But it happens when the nfs client is a FreeBSD 4.x machine or a linux
 >  machine (tested with Fedora 10 and 11).  And it does not seem to
 >  happen with nfs v2, just nfs v3.
 
 Which FreeBSD version your server is running? There was an additional
 fix (r197525) but it hasn't been MFCd to stable/7.
 
 Here's the patch against stable/7.
 
 %%%
 Index: sys/nfsserver/nfs_serv.c
 ===================================================================
 --- sys/nfsserver/nfs_serv.c	(revision 200062)
 +++ sys/nfsserver/nfs_serv.c	(working copy)
 @@ -1743,7 +1743,7 @@ nfsrv_create(struct nfsrv_descript *nfsd
  			tl = nfsm_dissect_nonblock(u_int32_t *,
  			    NFSX_V3CREATEVERF);
  			/* Unique bytes, endianness is not important. */
 -			cverf.tv_sec  = tl[0];
 +			cverf.tv_sec  = (int32_t)tl[0];
  			cverf.tv_nsec = tl[1];
  			exclusive_flag = 1;
  			break;
 %%%
 
 -- 
 Jaakko


More information about the freebsd-fs mailing list