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

NFS access to snapshots does not work for FreeBSD due to mnt_exjail not being filled in #15546

Open
rmacklem opened this issue Nov 19, 2023 · 2 comments
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)

Comments

@rmacklem
Copy link
Contributor

System information

Type Version/Name
Distribution Name FreeBSD
Distribution Version FreeBSD 14.0
Kernel Version 14.0-CURRENT
Architecture amd64
OpenZFS Version zfs-kmod-2.2.0-FreeBSD_g009d3288

When mounted over NFS, snapshots in .zfs/snapshot
are not accessible.

Export the dataset and mount it from a client and then
attempt to "cd /dataset/.zfs/snapshot/snapshot-name".

This is caused by the mnt_exjail field of the snapshot's
automounted vfs_t being NULL. After FreeBSD commit
88175af, this field must be filled in for NFS access to be
allowed.

The patch at https://reviews.freebsd.org/D42672 seems
to fix the problem.

@rmacklem rmacklem added the Type: Defect Incorrect behavior (e.g. crash, hang) label Nov 19, 2023
@KungFuJesus
Copy link

Should be closed with: #15563
Though, I imagine this should be backported to 2.2.x?

@AllKind
Copy link
Contributor

AllKind commented Nov 29, 2023

Then best to make a request here? #15602

@mmatuska mmatuska mentioned this issue Nov 30, 2023
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)
Projects
None yet
Development

No branches or pull requests

3 participants