[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 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257187

Alan Somers <asomers_at_FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |asomers_at_FreeBSD.org

--- Comment #1 from Alan Somers <asomers_at_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
this:

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

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.
Received on Wed Jul 14 2021 - 23:10:44 UTC

Original text of this message