Project

General

Profile

Bug #3908

Unable to access zfs snapshot via NFSv2

Added by Marcel Telka almost 7 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
nfs - NFS server and client
Start date:
2013-07-24
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

It is not possible to access zfs snapshot via NFSv2:

# nfsstat -m
/mnt from t1:/export/test
 Flags:         vers=2,proto=tcp,sec=sys,hard,intr,dynamic,acl,rsize=8192,wsize=8192,retrans=5,timeo=600
 Attr cache:    acregmin=3,acregmax=60,acdirmin=30,acdirmax=60

# ls -al /mnt/.zfs/snapshot/
ls: cannot access /mnt/.zfs/snapshot/dummy: Object is remote
total 0
dr-xr-xr-x 3 root root 3 2013-07-24 18:15 .
dr-xr-xr-x 4 root root 4 2013-05-08 21:59 ..
?????????? ? ?    ?    ?                ? dummy
#

The problem is that the NFSv2 file handle is too small to hold the zfs snapshot fid, so the VOP_FID() call in makefh() fails.

Also available in: Atom PDF