Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!ncar!gatech!udel!rochester!cornell!uw-beaver!mit-eddie!bbn!uwmcsd1!marque!gryphon!crash!jeh From: jeh@crash.cts.com (Jamie Hanrahan) Newsgroups: comp.os.vms Subject: Re: Detecting file creation Message-ID: <2944@crash.cts.com> Date: 9 May 88 07:16:53 GMT References: <272@sdrc.UUCP> Reply-To: jeh@crash.CTS.COM (Jamie Hanrahan) Organization: Crash TS, El Cajon, CA Lines: 20 Summary: Here's part of an idea, maybe (Larry Jones wants to be notified when someone creates a file in a particular directory.) I don't have The Answer, but I might have a Clue. When the XQP wants to create a file it takes out a lock so that it can write on the directory in question. This lock has a name which is derived in a reproducible way. It seems to me that if you take out a lock on the directory you should be able to coerce the lock manager into telling you when someone else (the XQP) wants the lock. You then release it, wait a reasonable time, and check the directory for a file to work on. This is definitely in the category of "Partly Baked Ideas"; I wouldn't burden the net with it if I'd seen a more thoroughly cooked response. Perhaps someone else can pick it up from here and fill in the details. Or, I could ask some of the Files-11 experts at DECUS next week. Yeah, that's the ticket! Good luck... --- Jamie Hanrahan