Displaying 1 result from an estimated 1 matches for "dfree_retv".
Did you mean:
dfree_retval
2004 Nov 12
0
more 'Quota/disk space display in windows'
...source/smbd/ntquotas.c there is code that corrects for block sizes
other than 1024, which would work correctly IFF the *bsize is set
correctly (should be 512 on my FreeBSD system but i don't know how to
debug stuff on FreeBSD to see the value actually used).
ie
if ((*bsize) < 1024) {
dfree_retval = (*dfree)/(1024/(*bsize));
} else {
dfree_retval = ((*bsize)/1024)*(*dfree);
would do the job to report the correct number of 1024 byte blocks to
Windows.
however, I'm seeing a report of twice the size, which indicates that
*bsize is set to 1024.
in /source/smbd/quotas.c I find this...