[Bug 257187] NFSv3 server creates symlinks that local clients can't read [ZFS]

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 14 Jul 2021 23:10:44 UTC

Alan Somers <asomers@FreeBSD.org> changed:

           What    |Removed                     |Added
                 CC|                            |asomers@FreeBSD.org

--- Comment #1 from Alan Somers <asomers@FreeBSD.org> ---
Firstly, does that symlink cross a mountpoint?  It may be that the target
exists as seen from the NFS client, but not on the server.

Assuming that isn't the problem, dtrace is your friend.  Try something like

sudo dtrace -i 'sdt:zfs::set-error /arg0 == 2/ {stack();}' -c "readlink

If the error is coming from ZFS, you should find out where.  But if it isn't
coming from ZFS, then run this instead:

sudo dtrace -i 'fbt:kernel::return /arg1 == 2 && pid == $target/ {trace(".");}'
-c "readlink /foo/bar/baz"

That command will have plenty of false positives, so don't print the stack
traces just yet.  If you spy a function that looks likely, then suitably modify
your D script and prints its stack trace.

You are receiving this mail because:
You are the assignee for the bug.