This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Win98: GetDiskFreeSpace fails on shares


----Original Message----
>From: Corinna Vinschen
>Sent: 16 June 2005 14:43

> On Jun 16 14:35, Dave Korn wrote:
>> ----Original Message----
>>> From: Corinna Vinschen
>>> Sent: 16 June 2005 14:22
>> 
>>> Thanks for the reply but... maybe you should have a look into Cygwin's
>>> statvfs implementation first?
>> 
>>   I see that if the GetDiskFreeSpace call fails, it doesn't even look at
>> whether the preceding ...Ex call succeeded or not.
> 
> Right, the idea being (right now) that data is missing to fill out the
> statvfs datastructure.
> 
> 
> Corinna

  Well, we do have the number of bytes free, which is the main thing to get
right.  And SUS gives us wriggle-room:

http://www.opengroup.org/onlinepubs/009695399/functions/statvfs.html

"It is unspecified whether all members of the statvfs structure have
meaningful values on all file systems"

  So perhaps we could just choose a fake block size to report so long as the
product of blocks*size gives the right result?



    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]