home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cbmvax!jesup
- From: jesup@cbmvax.commodore.com (Randell Jesup)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: A few Handler/FileSys Q's (Mod.Long.)
- Message-ID: <38025@cbmvax.commodore.com>
- Date: 18 Dec 92 04:59:59 GMT
- References: <1992Dec17.051905.1@economics.adelaide.edu.au>
- Reply-To: jesup@cbmvax.commodore.com (Randell Jesup)
- Organization: Commodore, West Chester, PA
- Lines: 36
- Keywords: handler filesystem packets Amiga DOS AmigaDOS lock FileLock
-
- djung@economics.adelaide.edu.au (David Jung) writes:
- >First here's what I have discovered ... a scenario ...
-
- [ opens file, notices that if the disk is removed and then another read
- from the file is done, the system requests it be replaced in the same drive ]
-
- This is normal behavior for our FS, because of it's implementation.
- Filehandles, unlike locks, are actually handles on coroutines inside the
- filesystem. Locks can easily move from one machine to another. Coroutines
- can't in general. The guts of the FS (actually almost all of it) would
- have to be recoded from scratch to change this.
-
- >3) As a filesystem, if a volume has just been inserted into the device you're
- >managing, and you grab the locks from the dol_LockList, can you Forbid(), go
- >through and change the fl_Task field of all the locks to yourself, then Permit()
- >so that any further use of the active FileLocks will be directed to you?
-
- Yes, this is expected.
-
- >4) If, again as a filesystem, I get an argument FileLock for a volume I am
- >no longer managing (volume was ejected from my device), can I, upon inspection
- >of the DosList finding a non-NULL dol_Task field, send the packet onto
- >the other filesystem that is managing the volume now (assuming the dol_Task
- >field is non-NULL because the volume has been inserted into another device).
- >I would have to set up the packet so it was returned either to me, or directly
- >to the application/DOS.
-
- You could do this, I suppose, but it would be more normal to fail it.
- Be very careful when forwarding packets about dp_Port.
-
- --
- To be or not to be = 0xff
- -
- Randell Jesup, Jack-of-quite-a-few-trades, Commodore Engineering.
- {uunet|rutgers}!cbmvax!jesup, jesup@cbmvax.cbm.commodore.com BIX: rjesup
- Disclaimer: Nothing I say is anything other than my personal opinion.
-