Sender: rich AT phekda DOT freeserve DOT co DOT uk Message-ID: <3DF0811A.E21B4E8C@phekda.freeserve.co.uk> Date: Fri, 06 Dec 2002 10:51:06 +0000 From: Richard Dawe X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.23 i586) X-Accept-Language: de,fr MIME-Version: 1.0 To: djgpp-workers AT delorie DOT com Subject: Re: RESEND: Re: File UItils at Clio 2.04 Query References: <200210150837 DOT KAA18829 AT lws256 DOT lu DOT erisoft DOT se> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com 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/ ]