delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/01/04/06:35:16

Date: Mon, 4 Jan 1999 13:34:13 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Martin Str|mberg <ams AT ludd DOT luth DOT se>
cc: DJGPP-WORKERS <djgpp-workers AT delorie DOT com>
Subject: Re: FAT32X and DJGPP
In-Reply-To: <199901040945.KAA29614@father.ludd.luth.se>
Message-ID: <Pine.SUN.3.91.990104132230.26097E-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com

On Mon, 4 Jan 1999, Martin Str|mberg wrote:

> At least DOZE do that (for example after
> fdisking and the reboot, you format the drive and you don't need to
> reboot again).

What DOS can do, no Windows has done before ;-).

Seriously, though: I'm almost certain Windows cannot allow you to fdisk 
one of the drives it recognizes without rebooting.

But even if I'm wrong, we could just document that if a disk is 
reformatted with a different type of filesystem, any DJGPP program needs 
to be restarted to be on the safe side.  I doubt that people reformat 
their drives too often, so we should be safe.

Btw, I tested your previous version on DOS 5.0, and it seems to work 
(except for the problems described below).

> Here's the result this far. The functions _get_fs_type() and
> _get_fat_size() seems to me to be generally useful.

I think the documentation should include a caveat that the return results 
are not 100% reliable.  In my testing, I couldn't get the previous 
version to report the CD filesystem (the disk was marked as absent).  
Also, floppy disks that were written by Windows 95 (and thus include LFN 
entries) tend to confuse the previous version: they were also reported as 
absent.  I tried with a diskette that was only written by DOS, and got 
FAT12 as expected.

So it seems that these functions are good enough for detecting FAT32 as 
opposed to all the rest, but otherwise are not always reliable.

I will test this with the new version and report results.

> But where in the
> libc directories do they belong?

I suggest either src/libc/dos/io or src/libc/dos/dos.

> Additionaly, is there a template for libc's .txh files?

See src/mkdoc/sample.txh in djlsr202.zip.

- Raw text -


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