From danny@cs.huji.ac.il  Mon Sep 14 06:18:08 2009
Return-Path: <danny@cs.huji.ac.il>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 5C780106566B
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 14 Sep 2009 06:18:08 +0000 (UTC)
	(envelope-from danny@cs.huji.ac.il)
Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.16.84])
	by mx1.freebsd.org (Postfix) with ESMTP id 128148FC17
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 14 Sep 2009 06:18:07 +0000 (UTC)
Received: from pundit-2.cs.huji.ac.il ([132.65.82.135])
	by kabab.cs.huji.ac.il with esmtp
	id 1Mn4t4-0003w0-Ou
	for FreeBSD-gnats-submit@freebsd.org; Mon, 14 Sep 2009 09:18:06 +0300
Received: from danny by pundit-2.cs.huji.ac.il with local (Exim 4.69 (FreeBSD))
	(envelope-from <danny@cs.huji.ac.il>)
	id 1Mn4t4-0000p8-NE
	for FreeBSD-gnats-submit@freebsd.org; Mon, 14 Sep 2009 09:18:06 +0300
Message-Id: <E1Mn4t4-0000p8-NE@pundit-2.cs.huji.ac.il>
Date: Mon, 14 Sep 2009 09:18:06 +0300
From: Daniel Braniss <danny@cs.huji.ac.il>
Reply-To: Daniel Braniss <danny@cs.huji.ac.il>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: zfs(v13)+nfs and open(..., O_WRONLY|O_CREAT|O_EXCL, ...) returns io error
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         138803
>Category:       kern
>Synopsis:       [zfs] zfs(v13)+nfs and open(..., O_WRONLY|O_CREAT|O_EXCL, ...) returns io error
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pjd
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 14 06:20:01 UTC 2009
>Closed-Date:    Mon Sep 14 13:34:07 UTC 2009
>Last-Modified:  Mon Sep 14 13:34:07 UTC 2009
>Originator:     Daniel Braniss
>Release:        FreeBSD 8.0-BETA4 i386
>Organization:
>Environment:
System: FreeBSD pundit-2 8.0-BETA4 FreeBSD 8.0-BETA4 #1: Sun Sep 13 16:46:28 IDT 2009 danny@sunfire:/r+d/obj/sunfire/i386/r+d/stable/8/sys/HUJI i386


	
>Description:
	see http://www.freebsd.org/cgi/query-pr.cgi?pr=135412
	this time the client is i386/32, when client is amd64
	all is ok.
>How-To-Repeat:
	#include <stdio.h>
	#include <fcntl.h>
	#include <stdlib.h>
	#include <string.h>
	#include <errno.h>

	main(int cc, char **vv)
	{
	int fd;
	char *fn;

	if(cc > 1)
	      fn = vv[1];
	else
		fn = "lock";
	fd = open(fn, O_WRONLY|O_CREAT|O_EXCL, 0666);
	if(fd < 0) {
	      int err = errno;
	      fprintf(stderr, "%d - %s\n", err, strerror(err));
	}
	exit(0);
	}
>Fix:

	


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: pjd 
State-Changed-When: pon 14 wrz 2009 10:34:08 UTC 
State-Changed-Why:  
I cannot reproduce the problem with your program. 
I was trying with HEAD (but it shouldn't be much different than BETA4 at this point). 
I was using i386 as NFS client and both i386 and amd64 as NFS servers. 


Responsible-Changed-From-To: freebsd-bugs->pjd 
Responsible-Changed-By: pjd 
Responsible-Changed-When: pon 14 wrz 2009 10:34:08 UTC 
Responsible-Changed-Why:  
I'll take this one. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=138803 
State-Changed-From-To: feedback->closed 
State-Changed-By: pjd 
State-Changed-When: pon 14 wrz 2009 13:33:24 UTC 
State-Changed-Why:  
Problem is already fixed as confirmed by the submitter. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=138803 
>Unformatted:
