SAMBA VFS module: free/total disk space return values
The return values for free/total disk space is not working correctly when you mount a share in Windows. My 340TB cluster had 7.3EB storage available in Windows which obviously is incorrect. I'm using a workaround by using a custom "dfree command =" script in the smb.conf, but VFS will override this and thus this script will not work (unless you remove the lines of codes for these specific disk operations in vfs_ceph.c).
I've compiled samba from samba-latest source (4.1.16) on Ubuntu 14.04LTS
My CEPH cluster is running version 0.87 (c51c8f9d80fa4e0168aa52685b8de40e42758578) on Ubuntu 14.04LTS
#2 Updated by Dennis Kramer almost 6 years ago
It's not a fix, its a workaround to get the smb.conf parameter "dfree command" working. It seems like if the ".disk_free_fn = cephwrap_disk_free" (which doesn't give the correct return values) is defined in vfs_ceph.c it will override the parameter "dfree command" in smb.conf if set.