Skip to content

[OpenZFS 2.3.6] [linux kernel 6.18.12] Sharing data set via NFS is broken #18379

@lvd2

Description

@lvd2

System information

Linux 6.18.12
Distribution Name Gentoo
Distribution Version --
Kernel Version 6.18.12
Architecture amd64
OpenZFS Version 2.3.6

Describe the problem you're observing

Client-mounted NFS share, which is a mounted dataset on a server, is not accessible.

Describe how to reproduce the problem

zfs list:
store2_pool/store_set/Test 112K 2.44T 112K /store/Test
/etc/exports:
/store/Test *(ro,insecure,all_squash,anonuid=65534,anongid=65534,async,subtree_check,crossmnt)
local access to /store/Test:

server:/store/Test$ ls -la
total 14
drwxr-xr-x  3 root root   4 Mar 27 17:15 .
drwxr-xr-x 16 root root  16 Mar 27 17:14 ..
drwxr-xr-x  2 root root   3 Mar 27 17:15 dir1
-rw-r--r--  1 root root 512 Mar 27 17:14 file1
server:/store/Test$ rhash -H -r .
38a5da888a8e34f048f171f702aa0146b897a174  file1
e094ebde36ebadf75a2fca4eebafbee38f439022  dir1/file2

access through nfs mount (even when mounted on the same host that shares it)

server /tmp # mount -t nfs -o defaults,ro,noatime,soft localhost:/store/Test /tmp/1/
server /tmp # cd 1
server /tmp/1 # ls -la
ls: cannot access 'dir1': Stale file handle
ls: cannot access 'file1': Stale file handle
total 1
drwxr-xr-x 3 root root   4 Mar 27 17:15 .
drwxrwxrwt 9 root root 240 Mar 27 16:34 ..
?????????? ? ?    ?      ?            ? dir1
?????????? ? ?    ?      ?            ? file1
server /tmp/1 # rhash -H -r .
RHash: dir1: Stale file handle
RHash: file1: Stale file handle

Include any warning/errors/backtraces from the system logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: DefectIncorrect behavior (e.g. crash, hang)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions