Using Samba
Prev Home Next

8.6.2 dfree command

This global option is used on systems that incorrectly determine the free space left on the disk. So far, the only confirmed system that needs this option set is Ultrix. There is no default value for this option, which means that Samba already knows how to compute the free disk space on its own and the results are considered reliable. You can override it as follows:


[global]
	dfree command = /usr/local/bin/dfree

This option should point to a script that should return the total disk space in a block, and the number of available blocks. The Samba documentation recommends the following as a usable script:


#!/bin/sh
df  | tail -1 | awk '{print " "}'

On System V machines, the following will work:


#!/bin/sh
/usr/bin/df  | tail -1 | awk '{print " "}'
Using Samba
Prev Home Next

 
 
Published under the terms of the Creative Commons License Design by Interspire