Date: Thu, 28 May 2009 00:25:16 -0700 From: Kip Macy <kmacy@freebsd.org> To: Mike Andrews <mandrews@bit0.com> Cc: pjd@freebsd.org, stable@freebsd.org, Takahashi Yoshihiro <nyan@jp.freebsd.org> Subject: Re: NFS on ZFS Message-ID: <3c1674c90905280025i17039257l573838d33d8493fd@mail.gmail.com> In-Reply-To: <alpine.BSF.2.00.0905272224090.22610@beast.int.bit0.com> References: <20090526.192217.94910518.nyan@jp.FreeBSD.org> <4A1C3DA8.5050300@bit0.com> <alpine.BSF.2.00.0905272224090.22610@beast.int.bit0.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <mandrews@bit0.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3c1674c90905280025i17039257l573838d33d8493fd>