🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #11589

Question about EXAMINE/EXNEXT

#11589
From: Ranjit Bhatnagar
Date: Sat, 25 Feb 1989 11:26
30 lines
1965 bytes
What is the appropriate behavior for Examine/ExNext if the contents
of a directory change between one request and the next?  Should it
always report the most up-to-date information possible, even though
this may lead to inconsistent lists, or should it buffer the entire
directory at the time Examine is called, even though this may lead
to out-of-date information, and the buffer may be stuck forever if
the Examining program is aborted before it finishes?  

I have a feeling that no existing filesystem buffers the directory
list - but how do current filesystems handle this problem, then?
What if the directory entry last examined is deleted before ExNext
is invoked on it?  What if the next entry (the one the hypothetical
'next' pointer in the previous entry) is deleted?  What if EVERYTHING
is deleted?  

The only solution I can think of is to search the entire directory
every time its datestamp changes, and skip all those files which we've
already seen.  I suppose that it's possible to do an ExNext on a
directory entry that not only doesn't exist, but never did, because
the filesystem must assume that it did exist at some time.  

	- ranjit




"Trespassers w"   ranjit@eniac.seas.upenn.edu	mailrus!eecae!netnews!eniac!...
  Where your eyes don't go a filthy scarecrow waves its broomstick arms and
  does a parody of each unconscious thing you do.   When you turn around to
look it's gone behind you; on its face it's wearing your confused expression...
Technical Details
Message-ID: <8374@netnews.upenn.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!mailrus!eecae!netnews.upenn.edu!eniac.seas.upenn.edu!ranjit

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!mailrus!eecae!netnews.upenn.edu!eniac.seas.upenn.edu!ranjit
From: ranjit@eniac.seas.upenn.edu (Ranjit Bhatnagar)
Newsgroups: comp.sys.amiga.tech
Subject: Question about EXAMINE/EXNEXT
Message-ID: <8374@netnews.upenn.edu>
Date: 25 Feb 89 11:26:19 GMT
Sender: root@netnews.upenn.edu
Reply-To: ranjit@eniac.seas.upenn.edu.UUCP (Ranjit Bhatnagar)
Distribution: na
Organization: University of Pennsylvania
Lines: 30