From sanpei@cherry.sanpei.org Fri Nov 9 15:58:44 2007 Return-Path: Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 879B016A417; Fri, 9 Nov 2007 15:58:44 +0000 (UTC) (envelope-from sanpei@cherry.sanpei.org) Received: from mail.asahi-net.or.jp (mail1.asahi-net.or.jp [202.224.39.197]) by mx1.freebsd.org (Postfix) with ESMTP id 436FB13C49D; Fri, 9 Nov 2007 15:58:44 +0000 (UTC) (envelope-from sanpei@cherry.sanpei.org) Received: from cherry.sanpei.org (j069113.ppp.asahi-net.or.jp [61.213.69.113]) by mail.asahi-net.or.jp (Postfix) with ESMTP id AEFEF1B777; Sat, 10 Nov 2007 00:36:52 +0900 (JST) Received: from cherry.sanpei.org (localhost [127.0.0.1]) by cherry.sanpei.org (8.13.8/8.13.8) with ESMTP id lA9FapVc008051; Sat, 10 Nov 2007 00:36:52 +0900 (JST) (envelope-from sanpei@cherry.sanpei.org) Received: (from sanpei@localhost) by cherry.sanpei.org (8.13.8/8.13.8/Submit) id lA9Fap0F008050; Sat, 10 Nov 2007 00:36:51 +0900 (JST) (envelope-from sanpei) Message-Id: <200711091536.lA9Fap0F008050@cherry.sanpei.org> Date: Sat, 10 Nov 2007 00:36:51 +0900 (JST) From: MIHIRA Sanpei Yoshiro Reply-To: MIHIRA Sanpei Yoshiro To: FreeBSD-gnats-submit@freebsd.org Cc: sanpei@freebsd.org Subject: zfs snapshot directory could not access from NFS client X-Send-Pr-Version: 3.113 X-GNATS-Notify: >Number: 117943 >Category: kern >Synopsis: [zfs] zfs snapshot directory could not access from NFS client >Confidential: no >Severity: serious >Priority: medium >Responsible: pjd >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Nov 09 16:00:01 UTC 2007 >Closed-Date: Tue Sep 22 12:43:07 UTC 2009 >Last-Modified: Tue Sep 22 12:43:07 UTC 2009 >Originator: MIHIRA Sanpei Yoshiro >Release: FreeBSD 6.2-RELEASE-p8 i386 >Organization: >Environment: NFS server FreeBSD rose.sanpei.org 8.0-CURRENT FreeBSD 8.0-CURRENT #1: Sun Oct 14 07:53:53 JST 2007 sanpei@rose.sanpei.org:/usr/obj/mnt/src/sys/ROSE i386 NFS client System: FreeBSD cherry.sanpei.org 6.2-RELEASE-p8 FreeBSD 6.2-RELEASE-p8 #4: Fri Oct 12 08:19:45 JST 2007 sanpei@cherry.sanpei.org:/usr/obj/usr/src/sys/GENERIC i 386 >Description: I'm planning to create new File server with ZFS. When I tested with ZFS, snapshot directory could not access from NFSv3 client. >How-To-Repeat: 1. create zfs volume % zpool create -m /devel zdevel2 da0 % zfs create zdevel2/nfs-test 2. NFS export zfs volume/mount NFS % zfs share -a % zfs set sharenfs="-alldirs -maproot=0:0 -network 192.168.1.0 -mask 255.255.255.0" zdevel2/nfs-test 3. NFS mount % mount -t nfs nfs_server:/devel/nfs-test /mnt2 4. create new snapshot zfs snapshot zdevel2/nfs-test@today 5. access from NFS server to snapshot directory I could access snapshot directory, and correct 6. access from NFS client % cd /mnt2/.zfs % ls snapshot/ OK % cd snapshot/ % pwd /mnt2/.zfs/snapshot OK % ls -la total 2 dr-xr-xr-x 2 root wheel 2 Nov 9 23:03 ./ dr-xr-xr-x 3 root wheel 3 Nov 9 23:03 ../ drwxr-xr-x 3 root wheel 3 Nov 9 23:04 today/ % cd today/ % pwd /mnt2 NG!! and files in /mnt2/.zfs/snapshot/today/ is same as current file, not same as snapshot revision(in NFS server) >Fix: OpenSolaris was already fixed from below mail, after March 2006 http://mail.opensolaris.org/pipermail/nfs-discuss/2006-March/001224.html Import new/latest zfs source into FreeBSD? >Release-Note: >Audit-Trail: State-Changed-From-To: open->feedback State-Changed-By: kmacy State-Changed-When: Sun May 17 06:03:40 UTC 2009 State-Changed-Why: does this happen with recent sources Responsible-Changed-From-To: freebsd-bugs->kmacy Responsible-Changed-By: kmacy Responsible-Changed-When: Sun May 17 06:03:40 UTC 2009 Responsible-Changed-Why: does this happen with recent sources? http://www.freebsd.org/cgi/query-pr.cgi?pr=117943 From: MIHIRA Yoshiro To: bug-followup@FreeBSD.org, sanpei@sanpei.org Cc: Subject: Re: kern/117943: [zfs] zfs snapshot directory could not access from NFS client Date: Thu, 21 May 2009 22:29:23 +0900 I test 8-current(2009/May/07). This problem is still there. And another aspect. Pawel Jakub Dawidek said at EurOpen 2008. http://www.europen.se/media/freenix2008/zfs.pdf Page 17. o hard to NFS-export separate file systems have to be visible when its parent is NFS-mounted So I think it was impossible on FreeBSD, isn't it? Cheers --- MIHIRA, Sanpei Yoshiro Tokyo, Japan. State-Changed-From-To: feedback->open State-Changed-By: kmacy State-Changed-When: Thu May 21 18:35:21 UTC 2009 State-Changed-Why: feedback received problem still present http://www.freebsd.org/cgi/query-pr.cgi?pr=117943 State-Changed-From-To: open->patched State-Changed-By: pjd State-Changed-When: śro 9 wrz 2009 05:58:53 UTC State-Changed-Why: There were various bugs related to this problem and I belive they are all gone in HEAD. Thanks for the report! Responsible-Changed-From-To: kmacy->pjd Responsible-Changed-By: pjd Responsible-Changed-When: śro 9 wrz 2009 05:58:53 UTC Responsible-Changed-Why: Kip, if you don't mind I'll take this one, as I already fixed it in HEAD and want to remember to close the PR once I MFC the change. http://www.freebsd.org/cgi/query-pr.cgi?pr=117943 State-Changed-From-To: patched->closed State-Changed-By: pjd State-Changed-When: wto 22 wrz 2009 12:42:34 UTC State-Changed-Why: Fix merged to stable/8. http://www.freebsd.org/cgi/query-pr.cgi?pr=117943 >Unformatted: