[Samba] dfree command cannot report correct disk space

Manhong Dai daimh at umich.edu
Mon May 6 19:40:15 UTC 2019


Hi,

my  filesystems is mounted like the below df output, /share is exported 
in samba.

Filesystem                     Size  Used Avail Use% Mounted on
/dev/sda1                       50G  9.1G   41G  19% /share
nfs1:/                          492T  433T   59T  89% /share/group1

If a 100G file is copied to /share/group1, samba will report the storage 
doesn't have enough space.

I tried to use 'dfree command' to report a correct disk space, the thing 
is dfree command always gets parameter $1 as '.', and its pwd is always 
'/share'. I have no way to know which directory the user is trying to 
copy to.

By the way, my Samba version is 4.10.2. /share/group1 is mounted as 
autofs. As there are many groups under /share mounted as NFS or other 
file systems, it is awkward to export each group as a samba share.

How can I fix this? Any input is greatly appreciated!

Best,

Manhong





More information about the samba mailing list