delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/01/16/21:10:23

Message-Id: <5.0.2.1.0.20010116203116.027afaf0@pop5.banet.net>
X-Sender: usbanet DOT farley3 AT pop5 DOT banet DOT net
X-Mailer: QUALCOMM Windows Eudora Version 5.0.2
Date: Tue, 16 Jan 2001 21:09:56 -0500
To: djgpp-workers AT delorie DOT com
From: "Peter J. Farley III" <pjfarley AT banet DOT net>
Subject: Re: Fw: Patch for statfs.c
Cc: djgpp-workers AT delorie DOT com
In-Reply-To: <200101111538.QAA14577@lws256.lu.erisoft.se>
References: <5 DOT 0 DOT 2 DOT 1 DOT 0 DOT 20010110233939 DOT 0275e8a0 AT pop5 DOT banet DOT net>
Mime-Version: 1.0
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

At 04:38 PM 1/11/01 +0100, Martin Stromberg wrote:
<Snipped>
 >I can't get those. But I can borrow lot's of games: Diablo, Diablo 2,
 >Fallout, Fallout 2, Icewind Dale, Baldurs Gate (CD and/or DVD) 
Baldurs
 >Gate 2, 11th Hour, 7th Guest, Alfa Centauri, Call to Power 2, Close
 >Combat 3, Colin McRae Rally, Colin McRae Rally 2.0, ... The list goes
 >on.

Martin, would you please try WinExplorer/Properties and the various 
versions of df.exe and statfs.c on the Alpha Centauri game's 
CDROM?  Here are the results I get on my system:

WinExplorer/Properties: 483,557,376 = 472,224 * 1024 = 236,112 * 2048

April, 1997 version of df.exe (which I just got from Eli):

F:\Eudora\Attach>df z:
Filesystem         1024-blocks  Used Available Capacity Mounted on
SMAC-E1_0Z            473138  473138        0    100%   z:/

This is 236,569 blocks of 2048 size, or total 484,493,312.

August, 1997 version of df.exe (I can email this to you if you want):

M:\>df z:
Filesystem         1024-blocks  Used Available Capacity Mounted on
SMAC-E1_0Z            472224  472224        0    100%   z:/

This is 236,112 blocks of 2048 size, or total 483,557,376.

df.exe re-built with CVS version of statfs.c:

O:\gnu\filutil3.16\src>df z:
Filesystem         1024-blocks  Used Available Capacity Mounted on
SMAC-E1_0Z            473138  473138        0    100%   z:/

This is 236,569 blocks of 2048 size, or total 484,493,312.

Standalone compile with -DTEST of 1997 statfs.c from fil316s.zip (added 
"#ifdef TEST" and extra printouts like latest statfs.c):

O:\src\libc\compat\sys\vfs>statfs97 z:
After AX1510: bsize = 2048, free = 0, blocks = 236569.
Results for `z:':

Total blocks: 236569
Available blocks: 0
Block size: 2048

This is 473,138 blocks of 1024 size, or total 484,493,312.

Standalone compile with -DTEST of Martin's latest version of statfs.c 
(with "#ifdef TEST" and extra printouts):

O:\src\libc\compat\sys\vfs>statfsms z:
After AX1510: bsize = 2048, free = 0, blocks = 236569.
After AX7303: bsize = 32768, free = 0, blocks = 14757.
After AX7303+DVD chk: bsize = 2048, free = 0, blocks = 236569.
Results for `z:':

Total blocks: 236569
Available blocks: 0
Block size: 2048

The AX1510 results are: 484,493,312 = 473,138 * 1024 = 236,569 * 2048.
The AX7303 results are: 483,557,376 = 472,224 * 1024 = 236,112 * 2048.

So, it is not the particular CDROM I was originally using, the results 
are consistently different with this CDROM as well, at least on my 
system.

Here is a table of the results I got:

			Total		1024 size	2048 size
WinExplorer/Properties:	483,557,376	472,224		236,112
April '97 df		484,493,312	473,138		236,569
August '97 df		483,557,376	472,224		236,112
Rebuilt df		484,493,312	473,138		236,569
statfs.c '97:
	AX1510		484,493,312	473,138		236,569
statfs.c (Martin):
	AX1510		484,493,312	473,138		236,569
	AX7303		483,557,376	472,224		236,112

Please let us know what results you get.

---------------------------------------------------------
Peter J. Farley III (pjfarley AT dorsai DOT org OR
                      pjfarley AT banet DOT net)

- Raw text -


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