Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing .zfs/snapshot using NFS fails #2520

Closed
cohdavid opened this issue Jul 22, 2014 · 1 comment
Closed

Accessing .zfs/snapshot using NFS fails #2520

cohdavid opened this issue Jul 22, 2014 · 1 comment
Labels
Type: Feature Feature request or new feature
Milestone

Comments

@cohdavid
Copy link

When I try to access a snapshot directory on a ZFS filesystem shared using NFS it fails, and I see error messages like this using dmesg:

NFS: directory .zfs/snapshot contains a readdir loop.Please contact your server vendor. The file: snap6 has duplicate cookie 522777912

It makes no difference if I use NFSv3 or NFSv4, and when I try a small readdir loop, the last entry is repeated. The system is running Debian Wheezy amd64, using the 0.6.3-1~wheezy version of your Debian ZFS packages.

The following shell script triggers the bug:

! /bin/bash

zfs create tank/share
zfs set [email protected]/32 tank/share
zfs share tank/share

for i in $(seq 1 10); do
dd if=/dev/zero of=/tank/share/$i bs=4k count=1k
zfs snapshot tank/share@snap$i
done

mount 127.0.0.1:/tank/share /mnt -t nfs4
perl -e 'opendir DIR, "/mnt/.zfs/snapshot/";while(readdir DIR){print"$_\n"};'

umount /mnt
mount 127.0.0.1:/tank/share /mnt -t nfs -o vers=3
perl -e 'opendir DIR, "/mnt/.zfs/snapshot/";while(readdir DIR){print"$_\n"};'

@behlendorf
Copy link
Contributor

This is not yet supported under Linux. There is an initial patch out there which adds support but it still needs to be reviewed and merged.

Thank for you filing this, but I'm closing this a duplicate of #1655 and #616.

@behlendorf behlendorf added this to the 0.8.0 milestone Jul 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Feature request or new feature
Projects
None yet
Development

No branches or pull requests

2 participants