Date: Tue, 24 Sep 1996 14:01:04 +0200 (IST) From: Eli Zaretskii To: Chris Matrakidis Cc: djgpp-workers AT delorie DOT com Subject: Re: `_flush_disk_cache' In-Reply-To: <26283.9609231805@baldrick> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 23 Sep 1996, Chris Matrakidis wrote: > I looked at smartdrv, ncache2 and superpck and found out that they all > trap the dos disk reset (int 21 function 0d). Since this function doesn't > need a drive parameter, then this may be a better choice than the bios disk > reset. Why should we assume that floppy drives aren't cached? I know quite a few people who use write-behind caching on A: and B: too. Btw, if anybody knows a simple enough way to map DOS drive letters to BIOS drive numbers, I'd like to know about it. Right now, `_flush_disk_cache' does a questionable job here (although I wasn't able to crash it even when I launched it from a CD-ROM drive). How can I know if e.g. drive F: belongs to the first physical drive (0x80 in BIOS parlance) or to the second (0x81 for BIOS)?