From owner-freebsd-stable@FreeBSD.ORG Thu May 28 07:57:15 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 7476B1065675 for ; Thu, 28 May 2009 07:57:15 +0000 (UTC) (envelope-from mat.macy@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by mx1.freebsd.org (Postfix) with ESMTP id 2C4118FC18 for ; Thu, 28 May 2009 07:57:14 +0000 (UTC) (envelope-from mat.macy@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so2830093ywe.13 for ; Thu, 28 May 2009 00:57:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=7jh6lK8p3aaLzMkP5vzqh/xW8PlXEvs8Ip8kPNDXwsc=; b=SBC019BLUkOXOe7RIZHdta0fv/XcwydwVOCZ7cgbZSISKS3DzVR8ZTAoQHlFkPCXaa DjJe/29VZLiD3yi+fU+n1+RyiITiLT1TG7BNR4QCQQtQ1SEt5TsQPG40akB4CpLMRbSw WUqFCmFEMuT6UrJm7c/q1/PqbXDh/7e6Mqibs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=sjvtxo5k7G7xQFuzeHV0qFM2z8oTRE/R8db0CwFUo0Z+TdaeRWrb7OUbtusXen0aQ3 RBb0BSc4tqjUYlnZO3S7HC3jfD797boxQtTF6tKs5BxH4g8QjXYTsvl9oykDqbfgjccG kU3ZY3TXrbd7GqYMJ154f2HxYCI+9Yp3xi92k= MIME-Version: 1.0 Sender: mat.macy@gmail.com Received: by 10.100.231.15 with SMTP id d15mr1607748anh.77.1243495516061; Thu, 28 May 2009 00:25:16 -0700 (PDT) In-Reply-To: References: <20090526.192217.94910518.nyan@jp.FreeBSD.org> <4A1C3DA8.5050300@bit0.com> Date: Thu, 28 May 2009 00:25:16 -0700 X-Google-Sender-Auth: ade8e9b799953cef Message-ID: <3c1674c90905280025i17039257l573838d33d8493fd@mail.gmail.com> From: Kip Macy To: Mike Andrews Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: pjd@freebsd.org, stable@freebsd.org, Takahashi Yoshihiro 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 07:57:15 -0000 The flags checks are too strict. File a PR. I'll fix it when I get to it. Sorrry. -Kip On Wed, May 27, 2009 at 7:24 PM, Mike Andrews wrote: > 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------- =A01 nyan =A0nyan =A00 =A05 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 >>> ---------- =A01 nyan =A0wheel =A00 =A05 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. =A0It seems so far to be limited to mkstemp() -- ju= st >> copying files normally works. =A0For 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 NF= S. > > I don't yet know if it matters whether the on-disk format is ZFS v6 vs v1= 3. > > --=20 When bad men combine, the good must associate; else they will fall one by one, an unpitied sacrifice in a contemptible struggle. Edmund Burke