Hi, On Wed, Feb 22, 2023 at 5:19 PM Bret Johnson <bretj...@juno.com> wrote: > > As an aside, I'm wondering if anybody has a "fool-proof" test for FAT32 > capability in the kernel. In USBDRIVE > what I currently do is go through all the drive letters and see if any of > them responds correctly to INT 21.7302h > (Get Extended BPB). This test works if there is at least one existing FAT32 > drive letter, but will fail if there are > no actual FAT32 partitions even if the kernel supports FAT32. I don't know > of a direct or fool-proof way to detect > FAT32 support, but maybe somebody else has come up with something.
I believe DJGPP utils (2.04 beta or newer, e.g. 2.05 current) use the naive method of "only assume FAT32 if DOS version is 7". (By this I mean "du.exe","df.exe" etc. will then use INT 21h, 7303h.) "INT 21 - Windows95 - FAT32 - GET EXTENDED FREE SPACE ON DRIVE" * http://www.delorie.com/djgpp/doc/rbinter/id/40/32.html What about INT 21h, 71A0h? (Admittedly, it may assume the Win95 LFN API is available.) "INT 21 - Windows95 - LONG FILENAME - GET VOLUME INFORMATION" * http://www.delorie.com/djgpp/doc/rbinter/id/23/32.html Returns: ES:DI buffer filled (ASCIZ, e.g. "FAT","NTFS","CDFS") _______________________________________________ Freedos-devel mailing list Freedos-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-devel