delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/08/12:13:21

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Thu, 8 Mar 2001 18:03:27 +0100
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Re: What is the ;atest status of df on Win9x/ME??
Message-ID: <20010308180327.B30523@cygbert.vinschen.de>
Mail-Followup-To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
References: <0G9V00F0IWYXD5 AT dgismtp04 DOT wcomnet DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <0G9V00F0IWYXD5@dgismtp04.wcomnet.com>; from mark.paulus@wcom.com on Thu, Mar 08, 2001 at 08:15:57AM -0700

On Thu, Mar 08, 2001 at 08:15:57AM -0700, Mark Paulus wrote:
> Hi,
> 
> I saw over the weekend that df is returning me a value of 2.0GB for 
> all the important values on my WinME/Fat32  machine.  I know that df is
> working correctly on Win2K/Fat32, so I checked the FAQ, and it states
> that :
> 1:  It's out of date
> 2:  there is a problem with the winapi stat command.
> 3:  Does anyone want to take it on?
> 
> So, my question:  What is the actual status, and what needs to
> be done to fix it?  I might be willing to "tackle" the problem, if
> I had a bit more info...

It's a problem of the `statfs' call in Cygwin. It uses
GetDiskFreeSpace to get the values. That function is documented
to be broken in 95. Thanks to Microsoft there's no surprisingly
correct behaviour of that function in later releases (98/ME)
but instead it's backward compatible (aka still broken).

The correct way would be to use GetDiskFreeSpaceEx in statfs()
additionally. It's a minor patch but it's also a minor problem
so it falls behind, most of the time. If you want to step forward
for a patch, feel free.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019