free disk space bug in 2.2

Patrick Scharrenberg scharrenberg at online.de
Fri Jun 29 15:01:46 GMT 2001


Hi..

okay.. I now corrected the quota value so that it's real 10 Gig
(10x1024x1024x1024).
because it was only a test I used the 10*1000*1000*1000..

okay.. the user is using 256 k of his disk-space
Samba reports:
10.737.418.240 byte of total space
and
10.737.156.096 byte of free space

but the free disk space on this fs is:
   5.688.381.440

so the value that samba returns IS wrong.

..patrick

----- Original Message -----
From: "Michael Gerdts" <Michael.Gerdts at usa.alcatel.com>
To: "David Collier-Brown" <davecb at canada.sun.com>
Cc: "Patrick Scharrenberg" <scharrenberg at online.de>;
<samba-technical at samba.org>
Sent: Friday, June 29, 2001 4:09 PM
Subject: Re: free disk space bug in 2.2


> On Fri, Jun 29, 2001 at 09:57:52AM -0400, David Collier-Brown wrote:
> > Patrick Scharrenberg and I have been discussing a bug in quotas on
> > 2.2.
> >
> > Patrick Scharrenberg wrote:
> > > > | If I have quotas enabled, samba 2.2 tells the windows client
> > > > | the right amount of free quota disk space.
> > > > | But if the real disk space is lower then the quota space, the
> > > > | system still tells the free quota value.
> >
> > 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 :-((
> > > Linux Kernel is 2.4.5
> > > Samba is 2.2.0
> >
> > This implies something seriously bogus, as the
> > code says
> > (*dfree) = MIN(*dfree,dfree_q);
> > which should[1] work.
>
> 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.
>
> Mike
>






More information about the samba-technical mailing list