You have been subscribed to a public bug: ### System information Type | Version/Name --- | --- Distribution Name | Ubuntu Distribution Version | 24.04 Kernel Version | 6.8.0-39-generic Architecture | amd64 OpenZFS Version | zfs-2.2.2-0ubuntu9
### 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.1 ### Describe how to reproduce the problem Mount a Samba share which has .zfs/snapshot directory at its mount, and try to browse mount at `.zfs/snapshot`. ### Include any warning/errors/backtraces from the system logs Attempts to access from within the `.zfs/snaphot` directory , even with `sudo`, gives errors like: ``` % ls -al ls: snap_2024-07-24-16÷02÷10_HomeSync: No such file or directory ls: snap_2024-07-25-03÷05÷53_HomeSync: No such file or directory ls: snap_2024-07-25-16÷00÷55_HomeSync: No such file or directory ls: snap_2024-07-25-16÷57÷58_HomeSync: No such file or directory ls: snap_2024-07-26-16÷06÷29_HomeSync: No such file or directory ls: snap_2024-07-27-16÷49÷33_HomeSync: No such file or directory ls: snap_2024-07-28-15÷53÷12_HomeSync: No such file or directory ls: snap_2024-07-28-16÷00÷15_HomeSync: No such file or directory ls: snap_2024-07-29-14÷05÷12_HomeSync: No such file or directory ls: snap_2024-07-29-14÷05÷52_HomeSync: No such file or directory ls: snap_2024-07-29-14÷12÷29_HomeSync: No such file or directory ls: snap_2024-07-29-14÷14÷47_HomeSync: No such file or directory ls: snap_2024-07-29-14÷16÷31_HomeSync: No such file or directory ls: snap_2024-07-29-14÷19÷44_HomeSync: No such file or directory ls: snap_2024-07-29-14÷19÷55_HomeSync: No such file or directory ls: snap_2024-07-29-14÷20÷42_HomeSync: No such file or directory ls: snap_2024-07-29-14÷20÷57_HomeSync: No such file or directory ls: snap_2024-07-29-14÷27÷19_HomeSync: No such file or directory ls: snap_2024-07-29-14÷35÷18_HomeSync: No such file or directory ls: snap_2024-07-29-16÷00÷07_HomeSync: No such file or directory ls: snap_2024-07-30-13÷19÷01_HomeSync: No such file or directory ls: snap_2024-07-30-17÷15÷54_HomeSync: No such file or directory ls: snap_2024-07-30-22÷43÷18_HomeSync: No such file or directory ls: snap_2024-07-31-16÷01÷02_HomeSync: No such file or directory ls: snap_2024-08-01-16÷11÷34_HomeSync: No such file or directory total 64 drwxrwxrwx 1 kimono staff 16384 Aug 6 23:45 . drwxrwxrwx 1 kimono staff 16384 Aug 3 00:44 .. ls: fts_read: No such file or directory ``` Relevant part of `smb.conf` contains: ``` zfsacl:expose_snapdir = True veto files = /.windows/.mac/ ``` When dataset is `zfs set snapdir=visible ...`, then most directories are visible but contents are not: ``` ls: snap_2024-07-29-14÷19÷55_HomeSync: No such file or directory ls: snap_2024-07-30-17÷15÷54_HomeSync: No such file or directory total 800 drwxrwxrwx 1 kimono staff 16384 Aug 6 23:45 . drwxrwxrwx 1 kimono staff 16384 Aug 3 00:44 .. drwxrwxrwx 1 kimono staff 16384 Jul 24 16:02 snap_2024-07-24-16÷02÷10_HomeSync drwxrwxrwx 1 kimono staff 16384 Jul 25 03:05 snap_2024-07-25-03÷05÷53_HomeSync drwxrwxrwx 1 kimono staff 16384 Jul 25 16:00 snap_2024-07-25-16÷00÷55_HomeSync drwxrwxrwx 1 kimono staff 16384 Jul 25 16:57 snap_2024-07-25-16÷57÷58_HomeSync drwxrwxrwx 1 kimono staff 16384 Jul 26 16:06 snap_2024-07-26-16÷06÷29_HomeSync drwxrwxrwx 1 kimono staff 16384 Jul 27 16:49 snap_2024-07-27-16÷49÷33_HomeSync drwxrwxrwx 1 kimono staff 16384 Jul 28 15:53 snap_2024-07-28-15÷53÷12_HomeSync drwxrwxrwx 1 kimono staff 16384 Jul 28 16:00 snap_2024-07-28-16÷00÷15_HomeSync drwxrwxrwx 1 kimono staff 16384 Jul 29 14:05 snap_2024-07-29-14÷05÷12_HomeSync drwxrwxrwx 1 kimono staff 16384 Jul 29 14:05 snap_2024-07-29-14÷05÷52_HomeSync drwxrwxrwx 1 kimono staff 16384 Jul 29 14:12 snap_2024-07-29-14÷12÷29_HomeSync drwxrwxrwx 1 kimono staff 16384 Jul 29 14:14 snap_2024-07-29-14÷14÷47_HomeSync drwxrwxrwx 1 kimono staff 16384 Jul 29 14:16 snap_2024-07-29-14÷16÷31_HomeSync drwxrwxrwx 1 kimono staff 16384 Jul 29 14:19 snap_2024-07-29-14÷19÷44_HomeSync drwxrwxrwx 1 kimono staff 16384 Jul 29 14:20 snap_2024-07-29-14÷20÷42_HomeSync drwxrwxrwx 1 kimono staff 16384 Jul 29 14:20 snap_2024-07-29-14÷20÷57_HomeSync drwxrwxrwx 1 kimono staff 16384 Jul 29 14:27 snap_2024-07-29-14÷27÷19_HomeSync drwxrwxrwx 1 kimono staff 16384 Jul 29 14:35 snap_2024-07-29-14÷35÷18_HomeSync drwxrwxrwx 1 kimono staff 16384 Jul 29 16:00 snap_2024-07-29-16÷00÷07_HomeSync drwxrwxrwx 1 kimono staff 16384 Jul 30 13:19 snap_2024-07-30-13÷19÷01_HomeSync drwxrwxrwx 1 kimono staff 16384 Jul 30 22:43 snap_2024-07-30-22÷43÷18_HomeSync drwxrwxrwx 1 kimono staff 16384 Jul 31 16:01 snap_2024-07-31-16÷01÷02_HomeSync drwxrwxrwx 1 kimono staff 16384 Aug 1 16:11 snap_2024-08-01-16÷11÷34_HomeSync ``` It *seems* as though ZFS no longer auto-mounts snapshots when a request is made from a MacOS SMB client to the SMB host. If I mount the snapshots on the host, the guest system now shows the contents of re: `ls -alR`. I first hypothesized that this was the new Samba VFS, see: https://wiki.samba.org/index.php/The_New_VFS, as smbd was making fstat calls instead of the stat calls made on the client. A minimal example I worked up seems to show that fstat and stat calls made on the host do in fact automount snapshots. ** Affects: zfs-linux (Ubuntu) Importance: Undecided Status: New ** Tags: bot-comment -- No way to access snapshots within the .zfs/snapshot virtual folder from Samba share https://bugs.launchpad.net/bugs/2076663 You received this bug notification because you are a member of Kernel Packages, which is subscribed to zfs-linux in Ubuntu. -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp