delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/02/03:15:14

Date: Thu, 2 Nov 2000 09:36:25 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Mark Tsombakos <markt AT shore DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: Directory "sync"?
In-Reply-To: <Pl1M5.1319$Mf4.215738@news.shore.net>
Message-ID: <Pine.SUN.3.91.1001102093557.22693B-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 1 Nov 2000, Mark Tsombakos wrote:

> Ok.  What SYNC call :)
> 
> > Where did you see this description?  DOS doesn't have any SYNC system
> > call.
> 
> I found it on every web page describing DOS interrupt and resetting the
> disk.  For example:
> 
> http://moon.act.uji.es/docs/interr/21/0D.HTM

If you mean Ralf Brown's Interrupt List, then it probably talks about
function 5D01h of the DOS Int 21h.

> > If you mean the library function `sync', then it resets the disk on
> > plain DOS, and flushes the disk cache buffers on Windows 9X.
> 
> Ahh.  Didn't know that the cache flush was win 9X...

The disk reset function, when called on DOS, usually causes DOS disk
caches to flush their buffers.  At least SmartDRV and a few others do
that.

> The problem is, I'm not creating a file in my application.  As I
> mentioned, I'm sharing a scsi disk between two pc's under msdos.

How is the sharing implemented?  Do you have some network driver
installed?

> Interestingly, and what lead me to write my own
> "refresh" or "flush" app was that if I run share.exe, whether or
> not it's loaded already, changes made on one pc show up on the other
> (where I ran share).  I suspected that share.exe was doing some kind
> of directory refresh before it decided it was already loaded and 
> quitting.  It is that "refresh" mechanism I am trying to recreate.

Try 21h/5D01h, perhaps it will help.

> >> Do I need to open a bogus file and close it to refresh the directory
> >> listing?
> 
> > Don't you already have the file open?  If not, how exactly did you
> > ``add'' it?
> 
> Either by copying it, or "echo > test".

Both of these methods already close the file, so I don't think opening
and closing it again would help.

- Raw text -


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