Bug 15819 - vfs_ceph_snapshots fails to list snapshots for entries at any level beyond share root
Summary: vfs_ceph_snapshots fails to list snapshots for entries at any level beyond sh...
Status: ASSIGNED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: VFS Modules (show other bugs)
Version: 4.22.0rc4
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Anoop C S
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-04 06:56 UTC by Anoop C S
Modified: 2025-03-04 11:43 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anoop C S 2025-03-04 06:56:39 UTC
When vfs_ceph_snapshots is used with vfs_ceph, snapshot contents residing under any level beyond the share root are not listed as previous versions. See below for configuration used:

[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

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

Above snapshots are successfully processed as previous versions for entries at share root.


$ 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

These snapshots under "dir" are not listed for entries inside "dir".