Date: Fri, 4 Dec 2009 06:30:05 GMT From: Jaakko Heinonen <jh@FreeBSD.org> To: freebsd-fs@FreeBSD.org Subject: Re: kern/135412: [zfs] [nfs] zfs(v13)+nfs and open(..., O_WRONLY|O_CREAT|O_EXCL, ...) returns io error Message-ID: <200912040630.nB46U583073148@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/135412; it has been noted by GNATS. From: Jaakko Heinonen <jh@FreeBSD.org> To: John Hein <jhein@symmetricom.com> Cc: bug-followup@FreeBSD.org, danny@cs.huji.ac.il, jilles@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912040630.nB46U583073148>