delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/10/14/04:42:52

Date: Tue, 14 Oct 1997 21:43:50 +1100
From: Bill Currie <billc AT blackmagic DOT tait DOT co DOT nz>
Subject: Re: Should off_t become unsigned?
In-reply-to: <Pine.SUN.3.91.971014103001.14174A-100000@is>
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>, djgpp-workers AT delorie DOT com
Message-id: <199710140840.VAA11082@teleng1.tait.co.nz gatekeeper.tait.co.nz>
Organization: Tait Electronics Limited
MIME-version: 1.0
References: <199710140416 DOT RAA10413 AT teleng1 DOT tait DOT co DOT nz gatekeeper.tait.co.nz>
Comments: Authenticated sender is <billc AT blackmagic DOT tait DOT co DOT nz>

On 14 Oct 97 at 10:30, Eli Zaretskii wrote:

> You can use a floppy disk as a non-FAT32 volume, can't you?

Doh, didn't think of that.

> 
> > However, as to detecting whether a drive has fat32, just read the 
> > boot sector (w95 allows disk reads, just not writes)
> 
> I thought Windows 95 requires to lock the volume before it allows
> direct disk reads, no?

No, writes only (hard learned experience).

> 
> Anyway, reading the boot sector is the last choice I would like to
> consider because it will probably mean trouble on some non-DOS
> filesystems, like NT, or Linux, or networked drives.  I hope there's
> a nicer way of detecting FAT32.

Don't some of the fcb functions fail with fat32? Try opening an 
accessible file using an fcb and if it fails, you have fat32.
Bill
--
Leave others their otherness.

- Raw text -


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