Mail Archives: djgpp-workers/1999/01/04/06:35:16
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 -