[Samba] DFree and sub-Share "disk" (volume?)

James Wright 12wrigja at gmail.com
Thu Feb 21 06:11:14 UTC 2019

James Wright <12wrigja at gmail.com>
9:56 PM (13 minutes ago)
to samba
Hi Samba users,

I have a Samba server with a single share backed by a ZFS pool / collection
of datasets. I can correctly navigate around the share, but the free space
reporting within clients is inaccurate for various directories, especially
those that are themselves setup as datasets in ZFS and have quota applied
to them.

I read over the documentation for both the 'dfree' and 'get quota command'
options, but it seems that the paths those pass as their first parameter
are useless to me, as they mostly seem to be the share's root (represented
as '.'), not the actual path being queried.

Looking over the SAMBA source, I believe that if
changed to pass the entire filepath to the dfree command I could achieve
what I wanted. A couple questions:

 - Is the filename that is passed there the name of the directory being
queried, or is my understanding incorrect?
 - in many places, it's common to see that variable called with the
basename function. I can't seem to find where that is defined - any
 - If this is something that would work, would the samba team be open to
adding this as an option to the dfree config, as I image that it's probably
not guaranteed to be backwards-compatible with the existing behaviour.



More information about the samba mailing list