Bug 15954 - vfs_ceph_disk_free should use the inode corresponding to the connectpath to report quota information
Summary: vfs_ceph_disk_free should use the inode corresponding to the connectpath to r...
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: VFS Modules (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba release manager
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-20 09:24 UTC by Shweta Sodani
Modified: 2026-02-19 09:59 UTC (History)
3 users (show)

See Also:


Attachments
patch from master for v4-23-test (2.92 KB, patch)
2025-11-28 17:05 UTC, Guenther Deschner
anoopcs: review+
Details
patch from master for v4-22-test (2.86 KB, patch)
2026-01-13 07:02 UTC, Anoop C S
gd: review+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shweta Sodani 2025-11-20 09:24:00 UTC
For statfs information , vfs_ceph_disk_free is using the inode based on mount point , this always gives root volume quota information when proxy is enabled because proxy internally mount always root volume. But If quota is set for subvolume share, It doesn't report the correct information for subvolume. Ideally  it should look the inode based on connectpath to fetch the correct inode  and to report the correct quota information of subvolume/subdir.
Comment 1 Samba QA Contact 2025-11-24 18:04:03 UTC
This bug was referenced in samba master:

f2ccf020046bc4f0465dfa8b5a8737b018fa66ac
Comment 2 Guenther Deschner 2025-11-28 17:05:59 UTC
Created attachment 18783 [details]
patch from master for v4-23-test
Comment 3 Anoop C S 2026-01-13 07:02:18 UTC
Created attachment 18797 [details]
patch from master for v4-22-test
Comment 4 Guenther Deschner 2026-01-13 14:09:10 UTC
Comment on attachment 18797 [details]
patch from master for v4-22-test

LGTM. RB+
Comment 5 Guenther Deschner 2026-01-13 14:14:18 UTC
Please add to v4-23-test and v4-22-test branches. Thanks!
Comment 6 Samba QA Contact 2026-01-13 23:34:03 UTC
This bug was referenced in samba v4-23-test:

8b9278941c865d5377f8852162927bd7d69ea19b
Comment 7 Samba QA Contact 2026-01-14 13:05:03 UTC
This bug was referenced in samba v4-22-test:

7c7373f2fd89e9142a31a3b408a9b73b10140ed8
Comment 8 Samba QA Contact 2026-01-23 11:39:44 UTC
This bug was referenced in samba v4-23-stable (Release samba-4.23.5):

8b9278941c865d5377f8852162927bd7d69ea19b
Comment 9 Samba QA Contact 2026-02-19 09:59:04 UTC
This bug was referenced in samba v4-22-stable (Release samba-4.22.8):

7c7373f2fd89e9142a31a3b408a9b73b10140ed8