From owner-freebsd-stable@FreeBSD.ORG Thu May 28 02:24:58 2009 Return-Path: Delivered-To: stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC525106566B; Thu, 28 May 2009 02:24:58 +0000 (UTC) (envelope-from mandrews@bit0.com) Received: from magnum.bit0.com (magnum.bit0.com [207.246.88.226]) by mx1.freebsd.org (Postfix) with ESMTP id AF6AA8FC16; Thu, 28 May 2009 02:24:58 +0000 (UTC) (envelope-from mandrews@bit0.com) Received: from localhost (localhost [127.0.0.1]) by magnum.bit0.com (Postfix) with ESMTP id 0B60A164E34; Wed, 27 May 2009 22:24:58 -0400 (EDT) X-Virus-Scanned: amavisd-new at bit0.com Received: from magnum.bit0.com ([127.0.0.1]) by localhost (magnum.int.bit0.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oWpjPPu53PPu; Wed, 27 May 2009 22:24:57 -0400 (EDT) Received: from beast.int.bit0.com (beast.int.bit0.com [172.27.0.2]) by magnum.bit0.com (Postfix) with ESMTP; Wed, 27 May 2009 22:24:57 -0400 (EDT) Date: Wed, 27 May 2009 22:24:56 -0400 (EDT) From: Mike Andrews X-X-Sender: mandrews@beast.int.bit0.com To: Takahashi Yoshihiro In-Reply-To: <4A1C3DA8.5050300@bit0.com> Message-ID: References: <20090526.192217.94910518.nyan@jp.FreeBSD.org> <4A1C3DA8.5050300@bit0.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Cc: stable@FreeBSD.org, pjd@FreeBSD.org, kmacy@FreeBSD.org Subject: Re: NFS on ZFS X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 May 2009 02:24:59 -0000 On Tue, 26 May 2009, Mike Andrews wrote: > Takahashi Yoshihiro wrote: >> Today's stable has a problem creating a new file via NFS on ZFS. >> >> On the NFS server, there is no problem. >> >> % cd /ZFS >> % mktemp hoge >> hoge >> % ls -l hoge >> -rw------- 1 nyan nyan 0 5 26 19:09 hoge >> >> >> But it's a problem on the NFS client. >> >> # mount server:/ZFS /ZFS >> % cd /ZFS >> % mktemp hoge >> mktemp: mkstemp failed on hoge: Input/output error >> % ls -l hoge >> ---------- 1 nyan wheel 0 5 26 19:09 hoge >> >> The file has a wrong permission. >> >> This problem is only on stable, current has no problem. > > I'm seeing this too. It seems so far to be limited to mkstemp() -- just > copying files normally works. For example /usr/bin/install -S fails, without > -S works, if the target is an NFS+ZFS volume. Anyone? I've verified that if the NFS server uses UFS2, mkstemp() from an NFS client to the server works fine, but if the NFS server uses ZFS, the NFS server returns EIO after creating a file with 000 permissions. In addition to breaking /usr/bin/install -S, it also breaks rsync over NFS. I don't yet know if it matters whether the on-disk format is ZFS v6 vs v13.