Cygwin 1.3.22-1 shows wrong disk space (df)
David Balazic
david.balazic@hermes.si
Wed Aug 6 15:21:00 GMT 2003
Oh yeah, sorry. Here is the cygcheck -s -v -r attached.
<<cygcheck.out>>
The C:\data is a native win2000 mount.
The fact is that df reports the wrong value for free space.
Some programs check for free space before writing a file and they
may decide wrongly if the free space is not reported correctly.
I don't know if df and other programs use the same method for
determining the free space. ( if df uses statfs(".",buffer) ,
then statfs is returning the wrong value for free space )
Regards,
David
> ----------
> From: Ronald
> Landheer-Cieslak[SMTP:blytkerchan@users.sourceforge.net]
> Reply To: cygwin@cygwin.com
> Sent: 6. avgust 2003 17:22
> To: David Balazic
> Cc: cygwin@cygwin.com
> Subject: Re: Cygwin 1.3.22-1 shows wrong disk space (df)
>> 523132928 / 1024 = 510880 - which is what is reported for C by df - looks
> OK.
> As for data being mounted from elsewhere - is it mounted using Cygwin's
> mount?
> (I doubt it, but attaching the cygcheck output as per
> http://cygwin.com/problems.html would remove doubts)
>> Whether or not df should have seen c:\data is not on c: is another matter
> if
> it's not a cygwin mount: I don't know how df should look for that
> possibility -
> or whether it should look for it as it is probably a small corner case..
>> Hmm.. this looks like a PTC situation..
>> rlc
>>> On Wed, Aug 06, 2003 at 04:46:26PM +0200, David Balazic wrote:
> > $ pwd
> > /cygdrive/c/data/mp3
> >
> > $ df .
> > Filesystem 1k-blocks Used Available Use% Mounted on
> > c: 4096540 3585660 510880 88% /cygdrive/c
> >
> > $ df
> > Filesystem 1k-blocks Used Available Use% Mounted on
> > x:\cygwin\bin 4096540 2477840 1618700 61% /usr/bin
> > x:\cygwin\lib 4096540 2477840 1618700 61% /usr/lib
> > x:\cygwin 4096540 2477840 1618700 61% /
> > c: 4096540 3585660 510880 88% /cygdrive/c
> > d: 38909952 10308608 28601344 27% /cygdrive/d
> > k: 28730 28730 0 100% /cygdrive/k
> > m: 1024000 512000 512000 50% /cygdrive/m
> > o: 1397622 341954 1055668 25% /cygdrive/o
> > x: 4096540 2477840 1618700 61% /cygdrive/x
> > z: 1024000 512000 512000 50% /cygdrive/z
> >
> >
> > A different volume is mounted on C:\data
> > df reports the wrong name and the wrong amount of free and used space.
> >
> > DIR in CMD.exe shows the correct values for free space :
> >
> > C:\data>dir m*
> > Volume in drive C is w2kmain
> > Volume Serial Number is 84FF-F54B
> >
> > Directory of C:\data
> >
> > 23.01.2003 12:31 <DIR> mp3
> > 0 File(s) 0 bytes
> > 1 Dir(s) 905.502.720 bytes free
> >
> > C:\data>cd ..
> >
> > C:\>dir m*
> > Volume in drive C is w2kmain
> > Volume Serial Number is 84FF-F54B
> >
> > Directory of C:\
> >
> > 20.05.2003 17:13 <DIR> mnt
> > 01.08.2003 10:16 <DIR> mvfslogs
> > 15.05.2003 15:00 <DIR> myserver
> > 0 File(s) 0 bytes
> > 3 Dir(s) 523.132.928 bytes free
> >
> > C:\>
> >
> --------------------------------------------------------------------------
> --
> > -----------
> > David Balazic mailto:david.balazic@hermes.si
> > HERMES Softlab http://www.hermes-softlab.com
> > Zolajeva 30 Phone: +386 2 450 8851
> > SI-2000 Maribor
> > Slovenija
> >
> --------------------------------------------------------------------------
> --
> > -----------
> > "Be excellent to each other." -
> > Bill S. Preston, Esq. & "Ted" Theodore Logan
> >
> --------------------------------------------------------------------------
> --
> > -----------
> >
> >
> >
> >
> >
> >
> > --
> > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> > Problem reports: http://cygwin.com/problems.html
> > Documentation: http://cygwin.com/docs.html
> > FAQ: http://cygwin.com/faq/
>> --
> Bones: "The man's DEAD, Jim!"
>-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 10929 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20030806/4365c626/attachment.obj>
-------------- next part --------------
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list