Mail Archives: djgpp-workers/2002/12/06/05:52:28
Hello.
Martin Stromberg wrote:
>
> > Is there an API for finding out the size of disks greater than 2GB? If
> > not, it
>
> Yes, there is. And it's been added in CVS.
>
> > seems to work OK for me:
>
> Try it an a FAT32 drive.
[snip]
OK. I've retested now. My DOS CD-ROM driver was hooking INT 21h. It looks like
there is a bug in the port of 'df', because it does not report sizes
correctly, despite statfs returning the right information. (I checked by
building a test program in the sources - it agrees with Explorer.)
BTW shouldn't the docs for statfs, statvfs and fstatvfs list a few programs
that can hook INT 21h? E.g.: CD-ROM drivers. Maybe it should say how to debug
INT 21h hooking? Otherwise it's not very helpful.
I'll take a look at the problem with 'df' sometime.
Thanks, bye, Rich =]
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
- Raw text -