free disk space bug in 2.2

David Collier-Brown davecb at canada.sun.com
Fri Jun 29 14:15:51 GMT 2001


Patrick Scharrenberg wrote:
> After some additional testing, he wrote:
> I have a user without quotas => Win2k reports 5.29 Gig of free disk space,
> which is correct
> but when I enable 10 GIG of quotas for this user => win2k reports 9,53 gig
> of free space :-((

Michael Gerdts wrote:
> What do you mean by "10 GIG"?  Is that 10 * 1000 * 1000 * 2 * 512 (
> 2,000,000 blocks) or is that 10 * 1024 * 1024 * 2 * 512?  Note that
> 9.53 * 1024/1000 * 1024/1000 = 9.99292928.
> 
> Sounds like a bug in definition of what a gigabyte is rather than a bug in
> Samba.

	With respect, the user had 5 units of space on a physical
	disk drive until the quota was increased to 10, after which
	the 5-unit disk was reported to have 10 units free.

	The value samba is returning is wrong, for any size
	of unit.

-- 
David Collier-Brown,           | Always do right. This will gratify 
Performance & Engineering Team | some people and astonish the rest.
Americas Customer Engineering  |                      -- Mark Twain
(905) 415-2849                 | davecb at canada.sun.com




More information about the samba-technical mailing list