-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
No way to access snapshots within the .zfs/snapshot
virtual folder from Samba share mounted via MacOS 14.6.1
#16424
Comments
I'll start by saying that OpenZFS 2.2.2 never had support for kernel 6.8; Ubuntu backported experimental patches that we hadn't completed, and I don't know what they've done since. This is not to blame them, but rather to say, this isn't a combination we technically support, and it might just be busted. But let's assume the best for the moment. You say it worked before, so what actually changed? You mention client and OS; I suppose the latter means you got new kernel, OpenZFS and Samba? What versions of each did you have before? It's not clear to me if you're saying that it's working if you do it directly on the host? I don't know what you're doing in the last paragraph ("stir the snapshots"). If Samba is doing something different than it used to, then that might be it. If it's doing the same thing then yes, perhaps a response has changed. You mention statx, how exactly has its response changed? It might be a real bug since fixed, but I didn't quickly find a PR that sounded like it. Could easily mean I missed something. Basically, divide and conquer. See if you can narrow it down! |
Understood. Hope no offense is taken. I see a thumbs down emoji! It seemed like a possible bug in the auto-mounter, like perhaps it should mount on a larger variety of system calls.
I upgraded from Ubuntu 22.04 to 24.04 while using MacOS 13, except it required the use of the This config seemed to work fine until an update to MacOS 14+.
On the host, I get the auto-mouter to mount the snapshots. Like -- if I do a This causes the auto-mounter to mount all snapshot directories.
Yes, it could be. Samba version is: Version 4.19.5-Ubuntu. Basically I'd like to be able to do what I did previously: On the client, I'd like to do a
I searched the issues for something similar but didn't discover anything. |
Okay I have a workaround: If I do an Also -- I think In any event, this perfectly describes my problem and the ask. I'd like snapshots to auto-mount when any |
FYI to confirm the source of this behavior seems to be Samba on the Linux server. See:
From: https://wiki.samba.org/index.php/The_New_VFS @robn would you advise? |
This is good info, thank you. Unfortunately I don't know anything much about Samba; my questions were mostly for triage. The next thing I suppose is to see if you can reproduce it on a stock OpenZFS., to rule in/out Ubuntu's version. You could possibly even just ask Ubuntu, since they should be supporting their whole stack. Alternately, a simple reproduction script or program that doesn't require installing Samba or Ubuntu. We'll need to be able to reproduce it to fix it if there is a bug anyway, and if it doesn't reproduce it on stock OpenZFS, then you'll have narrowed it down. |
Minimal reproducer shows my hypothesis might not be the cause:
|
System information
Describe the problem you're observing
No way to access snapshots within the
.zfs/snapshot
virtual folder from Samba share mounted via MacOS 14.6.1Describe how to reproduce the problem
Mount Samba share and try to browse mount at
.zfs/snapshot
. This used to work without settingsnapdir=visible
before an upgrade to MacOS 14.6 and Ubuntu 24.04.Include any warning/errors/backtraces from the system logs
Attempts to access from within the
.zfs/snaphot
directory , even withsudo
, gives errors like:smb.conf
contains:When dataset is
zfs set snapdir=visible ...
, then most directories are visible but contents are not:It seems as though ZFS no longer auto-mounts snapshots when a request is made from a SMB client.
However, if I stir the snapshots on the host, and let the auto-mounter work, the guest system now shows the contents of re:
ls -alR
but not re: a normalstatx
!The text was updated successfully, but these errors were encountered: