delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/01/06/06:23:14

Date: Sat, 06 Jan 2001 13:19:55 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "Norberto Alfredo Bensa" <ceo AT nbensacomputers DOT com>
Message-Id: <5567-Sat06Jan2001131954+0200-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6
CC: ams AT ludd DOT luth DOT se, djgpp-workers AT delorie DOT com
In-reply-to: <OE41bN4TZyabYTHrdus00003b81@hotmail.com>
(ceo AT nbensacomputers DOT com)
Subject: Re: Fw: Patch for statfs.c
References: <200101051844 DOT TAA15180 AT father DOT ludd DOT luth DOT se> <OE41bN4TZyabYTHrdus00003b81 AT hotmail DOT com>
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

> From: "Norberto Alfredo Bensa" <ceo AT nbensacomputers DOT com>
> Date: Fri, 5 Jan 2001 18:40:47 -0300
> 
> I've just tested on Win98 plain DOS mode and 213600 gives:
> blocks = 32768, bsize = 4096, resulting in 134,217,728 or 128MB...

Expected: 213600 is limited to 128MB, by its very definition.

> 2F1510 gives:
> blocks = 308862, bsize = 2048, resulting in 632,180,736 or ~602.9MB

That's the right value (the actual number depends on how full is the
CD, of course: it can go up to 700MB).

> Under Windows (DOS box) with 217303, I get:
> blocks = 19275, bsize = 32768, resulting in 631,603,200 or ~602.3MB

That's a lie: the block size is reported incorrectly (2048 is the
right value).  This clearly shows that we shouldn't use 217303 for
CDs.

> Properties for my E: drive gives 631,603,200, that's what 217303 is
> reporting.

Small wonder: I guess Windows uses 217303 itself.

- Raw text -


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