X-Authentication-Warning: new-smtp1.ihug.com.au: Host p27-tnt7.syd.ihug.com.au [203.173.144.27] claimed to be acceleron Message-ID: <003301c17407$8b7135d0$0a02a8c0@acceleron> From: "Andrew Cottrell" To: "Dennis Louie" Cc: References: <000801c173e3$de003310$0100a8c0 AT pentiumii> Subject: Re: statfs not returning correct cluster size Date: Fri, 23 Nov 2001 21:13:18 +1100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0028_01C17463.AC18DF20" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-Mimeole: Produced By Microsoft MimeOLE V6.00.2600.0000 Reply-To: djgpp-workers AT delorie DOT com This is a multi-part message in MIME format. ------=_NextPart_000_0028_01C17463.AC18DF20 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Dennis, I have added this to the list of issues with DJGPP and Win 2K / XP.=20 When did you download the GCC files? If it is in the last month then the = stat code is up to date if my memory serves me when I built it. The = updates since then don't toucb stat / fstat. lstat code changed last = month so if you have the latest DJGPP files from clio then the LIBC.A = file should be dated 5-Nov-2001.=20 Do you have a sample code you could email be directly so I can check it = out? I won't be able to have a look until Sunday at the earliest. Have you stepped through the code as per Eli's response? Andrew ----- Original Message -----=20 From: Dennis Louie=20 To: djgpp-workers AT delorie DOT com=20 Sent: Friday, November 23, 2001 4:58 PM Subject: statfs not returning correct cluster size Hi, Has anyone encountered a problem with statfs not returning the correct = info in DJGPP 2.04 for Win2K/XP? I'm running XP Pro. I have partitions with 1K and 4K cluster sizes, but statfs returns 32K = for both. It also appears to be returning incorrect values for = f_blocks, even for disk sizes under 2GB. I seem to be getting the = correct info for a 1.4MB floppy disk. If you need additional information or have a workaround, please send = email to dennis-louie AT att DOT net (I'm not subscribed to djgpp-workers). Thanks, Dennis Louie ------=_NextPart_000_0028_01C17463.AC18DF20 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Dennis,
 
I have added this to the list of issues = with DJGPP=20 and Win 2K / XP.
 
When did you download the GCC files? If = it is in=20 the last month then the stat code is up to date if my memory serves me = when I=20 built it. The updates since then don't toucb stat / fstat. lstat code = changed=20 last month so if you have the latest DJGPP files from clio then the = LIBC.A file=20 should be dated 5-Nov-2001.
 
Do you have a sample code you could = email be=20 directly so I can check it out? I won't be able to have a look until = Sunday at=20 the earliest.
 
Have you stepped through the code as = per Eli's=20 response?
 
Andrew
----- Original Message -----
From:=20 Dennis=20 Louie
Sent: Friday, November 23, 2001 = 4:58=20 PM
Subject: statfs not returning = correct=20 cluster size

Hi,
 
Has anyone encountered a problem with = statfs not=20 returning the correct info in DJGPP 2.04 for Win2K/XP?  I'm = running=20 XP Pro.
 
I have partitions with 1K and 4K = cluster sizes,=20 but statfs returns 32K for both.  It also appears to be returning = incorrect values for f_blocks, even for disk sizes under 2GB.  I = seem to=20 be getting the correct info for a 1.4MB floppy disk.
 
If you need additional information or = have a=20 workaround, please send email to dennis-louie AT att DOT net (I'm not = subscribed to djgpp-workers).
 
Thanks,
Dennis=20 Louie
------=_NextPart_000_0028_01C17463.AC18DF20--