[Samba] XFS tree quota and samba free space report

Mike Gallamore mike at mpi-cbg.de
Wed Oct 15 13:41:36 GMT 2008

Hi check out the dfree option for the smb.conf file.

Essentially it should look like:

dfree command = <path to script that gives value>

The script will be called from the directory in question so doing  
something like:


will get the path for you.

You can also call it with a %U option as so:

dfree command = <path to script that gives value> %U

then the calling username will be passed as well (should be the $2  
variable but test to make sure).

Your script needs to be executable by whatever user samba runs as,  
usually root, and needs to return only:

<size of disk in blocks><space (not sure but tab works too I  
think)<size free in blocks>

Hope that helps. I'm still having difficulties my self getting  
everything reporting properly, but my system is a bit of an odd ball  
too, (Solaris 10, SAMFS filesystem), it was working fine for me then  
we upgraded our samba and it stopped working. Hopefully it goes as  
straight forward for you as it should have for me :)
On Oct 15, 2008, at 2:29 PM, Stepan Kadlec wrote:

> 	greetings,
> 	does anyone know, if it is possible to propagate somehow the XFS  
> "directory tree quota" status to SMB workstation client free space  
> report? currently the client sees total free space of share's  
> partition (instead of tree quota free space). when the tree quota  
> limit is reached, the write attempts fail, but free space report  
> shows enough space, so this is confusing. I guess it is not possible  
> to propagate such information but still asking :-).
> 	bye steve.
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/listinfo/samba

More information about the samba mailing list