-
Notifications
You must be signed in to change notification settings - Fork 2k
[OpenZFS 2.3.6] [linux kernel 6.18.12] Sharing data set via NFS is broken #18379
Copy link
Copy link
Open
Labels
Type: DefectIncorrect behavior (e.g. crash, hang)Incorrect behavior (e.g. crash, hang)
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type: DefectIncorrect behavior (e.g. crash, hang)Incorrect behavior (e.g. crash, hang)