delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/09/27/09:03:02

Date: Fri, 27 Sep 1996 14:57:30 +0200 (MET DST)
From: Mark Habersack <grendel AT ananke DOT amu DOT edu DOT pl>
Reply-To: grendel AT ananke DOT amu DOT edu DOT pl
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
cc: Charles Sandmann <sandmann AT clio DOT rice DOT edu>, cmatraki AT eleceng DOT ucl DOT ac DOT uk,
djgpp-workers AT delorie DOT com
Subject: Re: `_flush_disk_cache'
In-Reply-To: <Pine.SUN.3.91.960926164946.17125B-100000@is>
Message-ID: <Pine.NEB.3.95.960927145052.24686G-100000@ananke.amu.edu.pl>
MIME-Version: 1.0

On Thu, 26 Sep 1996, Eli Zaretskii wrote:


>I don't call the SmartDrive function at all, only Int 13h, function 0
>(reset disk) for DOS and a Windows95-specific function that flushes the
Yes, I've seen it. I think that there should be a special case for NT which is
very touchy when it comes to allowing DOS apps messing up with hardware
directly. SmartDrive call is very likely to be emulated by DOS VM as it is the
standard way Micro$oft recommends for flushing cache.

>cache.  Int 13h seems to be a popular enough service to be supported even
I suppose there is at least one thing that may prevent this call from being
successful. It is NT disk stripping. NT is able to create virtual drives that
span their partitions through the physical drives. It is not guaranteed that
the 'strip' (or virtual partition) will be on two drives attached to the same
controller. Int 13h fun 0 however resets only ONE controller, AFAIK. This
would mean destroying disk logical structure and thus is probably intercepted
and prohibited on NT.

>on NT.  But if it isn't, I'd sure like to know how to call those VxDs that
>cause the cache to flush on NT. 
I have some help files about WIn95 VxD calls. I guess it doesn't hurt to check
whether these work on NT also. I'll browse through the docs and try to find
some info.

---------------------------------------------------------------------------
You can't brush me under the carpet, you can't hide me under the stairs,
The custodian of your private fears, your leading actor of yesteryear,
Who as you crawled out of the alleys of obscurity, sentenced to rejection
 in the morass of anonymity. You who I directed with a lover's will, you
 who I let hypnotise the lens. You who I let bathe in the spotlights glare.
You who wiped me from your memory like a greasepaint mask, just like a
 greasepaint mask...
-------------------- http://ananke.amu.edu.pl/~grendel -------------------

- Raw text -


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