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.
This bug was referenced in samba master: f2ccf020046bc4f0465dfa8b5a8737b018fa66ac
Created attachment 18783 [details] patch from master for v4-23-test
Created attachment 18797 [details] patch from master for v4-22-test
Comment on attachment 18797 [details] patch from master for v4-22-test LGTM. RB+
Please add to v4-23-test and v4-22-test branches. Thanks!
This bug was referenced in samba v4-23-test: 8b9278941c865d5377f8852162927bd7d69ea19b
This bug was referenced in samba v4-22-test: 7c7373f2fd89e9142a31a3b408a9b73b10140ed8
This bug was referenced in samba v4-23-stable (Release samba-4.23.5): 8b9278941c865d5377f8852162927bd7d69ea19b
This bug was referenced in samba v4-22-stable (Release samba-4.22.8): 7c7373f2fd89e9142a31a3b408a9b73b10140ed8