Be it vfs_shadow_copy2 or vfs_ceph_snapshots, vfs_ceph_new couldn't list the snapshots as previous versions. Sample configurations: [cephfs-subvol-new] comment = For samba share of subvolume subvol path = /volumes/_nogroup/subvol/d2916e6d-a054-41f1-ac77-17ee77f22365 read only = No vfs objects = ceph_snapshots ceph_new ceph_new:config_file = /etc/ceph/ceph.conf ceph_new:user_id = foo ceph_new:filesystem = cephvol [cephfs-subvol-new-shadowcopy2] comment = For samba share of subvolume subvol path = /volumes/_nogroup/subvol/d2916e6d-a054-41f1-ac77-17ee77f22365 read only = No vfs objects = shadow_copy2 ceph_new shadow:snapdir = .snap shadow:snapdirseverywhere = yes shadow:format = _snap_%Y-%m-%d-%H%M%S_1099511627778 ceph_new:config_file = /etc/ceph/ceph.conf ceph_new:user_id = foo ceph_new:filesystem = cephvol Sample snapshots available within the file system: $ smbclient \\\\192.168.122.101\\cephfs-subvol-new -U root%smb -c "cd .snap;ls" . D 0 Mon Mar 3 22:45:20 2025 .. D 0 Fri Oct 11 15:25:07 2024 _snap_2025-02-06-155603_1099511627778 D 0 Thu Jan 30 17:38:58 2025 _snap_2025-02-06-160806_1099511627778 D 0 Thu Feb 6 16:07:20 2025 _snap_2025-02-12-161003_1099511627778 D 0 Sat Feb 8 18:48:03 2025 _snap_2025-02-12-163817_1099511627778 D 0 Sat Feb 8 18:48:03 2025 _snap_2025-02-12-172301_1099511627778 D 0 Wed Feb 12 17:22:04 2025 _snap_2025-02-13-161612_1099511627778 D 0 Thu Feb 13 15:23:12 2025 _snap@2025-02-21-170620_1099511627778 D 0 Thu Feb 20 10:27:27 2025 _snap_GMT_2025-02-21-173206_1099511627778 D 0 Thu Feb 20 10:27:27 2025 _snap#_GMT_2025-02-21-180623_1099511627778 D 0 Thu Feb 20 10:27:27 2025 _snap_1099511627778 D 0 Thu Feb 20 10:27:27 2025 4902912 blocks of size 1024. 4902912 blocks available $ smbclient \\\\192.168.122.101\\cephfs-subvol-new -U root%smb -c "cd dir/.snap;ls" . D 0 Mon Mar 3 22:45:20 2025 .. D 0 Thu Feb 20 10:27:27 2025 _snap_2025-02-06-160806_1099511627778 D 0 Thu Feb 6 16:07:57 2025 _snap_2025-02-12-161003_1099511627778 D 0 Thu Feb 6 16:07:57 2025 _snap_2025-02-12-163817_1099511627778 D 0 Wed Feb 12 16:37:48 2025 _snap_2025-02-12-172301_1099511627778 D 0 Wed Feb 12 16:37:48 2025 _snap_2025-02-13-161612_1099511627778 D 0 Wed Feb 12 16:37:48 2025 _snap@2025-02-21-170620_1099511627778 D 0 Wed Feb 12 16:37:48 2025 _snap_GMT_2025-02-21-173206_1099511627778 D 0 Wed Feb 12 16:37:48 2025 _snap#_GMT_2025-02-21-180623_1099511627778 D 0 Wed Feb 12 16:37:48 2025 _snap_1099511627778 D 0 Wed Feb 12 16:37:48 2025 4902912 blocks of size 1024. 4902912 blocks available
This bug was referenced in samba master: c5ddd94a08503a52914ce351ebf1083178e8c8bc ee1c3e1db9a2d12ba6d9dd24faccf0020b1daf0d 9341d7fb466c95ea5aa0643049ce2a1f4183b9d0 a96f0542c8317a7dd0470b32350de6893fd98723
Created attachment 18601 [details] patch from master for v4-22-test
Created attachment 18602 [details] patch from master for v4-21-test
Comment on attachment 18601 [details] patch from master for v4-22-test LGTM, RB+
Comment on attachment 18602 [details] patch from master for v4-21-test LGTM, RB+
Jule, please add to v4-21 and v4-22. Thanks!
This bug was referenced in samba v4-21-test: 08f2d5abca6b44c5cae1e476a591495ce76a3179 6b997c180f52740014724f2351683f409e74cfff d9151f66cc39be0653618ac299c2a9b2e587ef28 40d2b73f24b2a780d3bf278f177206a0a107fdb1
This bug was referenced in samba v4-22-test: 4e9eb916024a61fdebb3aedd10e972ac957cc8c1 8b38092890dc18183ed3190e6731f4a21d341d9e d26177dcaeb757e01a480ebd7a7a9dd7528ddbad bf440caab97778ae6ce312d4905585abe277884c