Date: Thu, 29 Nov 2001 10:20:57 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Dennis Louie cc: Andrew Cottrell , djgpp-workers AT delorie DOT com, Charles Sandmann Subject: Re: statfs not returning correct cluster size - 7302h and GNU df don't work either In-Reply-To: <002701c17889$185c9d60$0100a8c0@pentiumii> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 28 Nov 2001, Dennis Louie wrote: > > > Could you send me mail when the statfs problem is fixed? > > > > Fixed--how? AFAIU, `statfs' does on W2K the best job it could, given > > the system calls implemented by W2K. How can we fix that? > > There must be a DOS function that can be made to return this information > correctly. If there is such a beast, we don't know about it, and neither does RBIL. I think it simply doesn't exist. > Windows XP can determine the correct disk size and available > space. Windows doesn't use DOS calls. It also quite deliberately doesn't let DOS programs access Windows features that are available via the Win32 API calls. Microsoft wants DOS programs to die, so it does everything in their power to make them miserable. > The current statfs code doesn't even try to use Functions 7302h or 7303h. That's because, as far as we know, these functions aren't supported on W2K and XP. I thought we just demonstrated that fact one more time in this thread. > _osmajor is 5 for WinXP and the conditional only tries to execute those > functions if it's between 7 and 10 (whatever Windows versions they > correspond to). Whoever wrote that code must have some information about > INT21 functions that isn't widely known (yet)... We wrote that code, and the information that 7302h and 7303h aren't supported except on Windows 9X family is spelled out in RBIL. Our testing indicates that RBIL is right. If you want statfs to be fixed on W2K and XP, bug Microsoft to provide some API for that, or add support for the 73xx functions we use on Windows 9X. We cannot do anything if they actively block us from accessing this information.