kern/117943: zfs snapshot directory could not access from NFS client

MIHIRA Sanpei Yoshiro sanpei at
Fri Nov 9 08:00:01 PST 2007

>Number:         117943
>Category:       kern
>Synopsis:       zfs snapshot directory could not access from NFS client
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 09 16:00:01 UTC 2007
>Originator:     MIHIRA Sanpei Yoshiro
>Release:        FreeBSD 6.2-RELEASE-p8 i386
NFS server
FreeBSD 8.0-CURRENT FreeBSD 8.0-CURRENT #1: Sun Oct 14 07:53:53
JST 2007     sanpei at  i386

NFS client
System: FreeBSD 6.2-RELEASE-p8 FreeBSD 6.2-RELEASE-p8 #4: Fri
Oct 12 08:19:45 JST 2007 sanpei at i
I'm planning to create new File server with ZFS.
When I tested with ZFS, snapshot directory could not
access from NFSv3 client.

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 -mask" zdevel2/nfs-test

3. NFS mount

% mount -t nfs nfs_server:/devel/nfs-test /mnt2

4. create new snapshot
zfs snapshot zdevel2/nfs-test at 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)


OpenSolaris was already fixed from below mail, after March 2006

Import new/latest zfs source into FreeBSD?

More information about the freebsd-bugs mailing list