www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/11/24/09:37:06

Date: Sat, 24 Nov 2001 16:35:28 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: dennis-louie AT att DOT net
Message-Id: <2561-Sat24Nov2001163527+0200-eliz@is.elta.co.il>
X-Mailer: emacs 21.1.50 (via feedmail 8 I) and Blat ver 1.8.9
CC: djgpp-workers AT delorie DOT com
In-reply-to: <000b01c174a3$9ff1cdc0$0100a8c0@pentiumii> (dennis-louie@att.net)
Subject: Re: statfs not returning correct cluster size
References: <000801c173e3$de003310$0100a8c0 AT pentiumii> <1438-Fri23Nov2001103147+0200-eliz AT is DOT elta DOT co DOT il> <000b01c174a3$9ff1cdc0$0100a8c0 AT pentiumii>
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: "Dennis Louie" <dennis-louie AT att DOT net>
> Date: Fri, 23 Nov 2001 20:44:19 -0800
> 
> Is this is the info you wanted?

Yes, thanks.

> The DOS system call is Int 21h, Function 36h, called via
> __dpmi_int(0x21, &regs).  AX appears to be returning the wrong
> number of sectors per cluster.

Okay, this is expected, I think: this is Windows XP, where we think
FAT32-aware system calls are not supported.  So statfs uses the
legacy DOS function 36h, which simply behaves as if you have the
largest possible disk FAT16 can support.

Can you try to modify statfs.c so that it tries to call the functions
7303h or 7302h, and see if any of them works for you?

> I determined experimentally and via PartitionMagic that the cluster
> size for my C: drive is 1K, so I expect AX to be 2 and CX to be 512,
> but AX is set to 64.

What kind of partion type is that?  Is it NTFS or something else?

- Raw text -


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