Mail Archives: djgpp/2001/07/05/23:47:50
Martin Str|mberg wrote:
> > I would like to thank the DJGPP-workers and N. A. Bensa for their
> > attempt to get statfs() [rev. 1.6 on CVS] to read the correct drive
> > space information. It works -- with a slight discrepancy (less than
> > 2% on my machine), but it's good enough for my current purposes.
>
> As the intent was to have no discrepancies, I'd like to know more.
> What does statfs() say and how do you verify that?
By "discrepancy" I meant only that Windows 98 and statfs() do not
report the same amount of free space left on my hard drive's
partition.
Info source Free bytes reported
=========== ===================
C:->Properties 4 095 901 696 bytes
Scandisk 4 095 901 696 bytes
statfs() 4 026 531 840 bytes
The discrepancy is 69 369 856 bytes, and I don't claim to have a
clue as to which figure is correct. Maybe neither. I assume they're
both in the ballpark, and that is more or less all I am looking for.
Perfection would be nice, and if I had a machine of my own I might do
some research and experimentation to try to find out what is going
on. I should have a machine of my own in August, so maybe then....
Thanks again,
Dave W.
- Raw text -