Path: utzoo!mnetor!uunet!nuchat!peter From: peter@nuchat.UUCP (Peter da Silva) Newsgroups: comp.sys.amiga Subject: Re: Device List and monitoring devices. Message-ID: <705@nuchat.UUCP> Date: 28 Feb 88 15:11:51 GMT References: <1475@sugar.UUCP> <43039@sun.uucp> Organization: Public Access - Houston, Tx Lines: 33 Keywords: Details, details. AmigaDOS and crystal balls. In article <43039@sun.uucp>, cmcmanis%pepper@Sun.COM (Chuck McManis) writes: > With the same physical device? Well As far as I know the only way to > really do it is to compare the Locks of the two files. Note that locks > are supposed to be opaque things but I believe they should be comparable > much like pointers. If the files are the same physical file the locks > should match up. That tells me that the files are the same physical file. What I want to do is check whether "sys:include" and (say) "VD0:include/workbench" are on the same physical device. I need some good, reliable, way of keeping myself from recursively copying a directory into itself in the face of assigned names when someone picks up the former and drops it in the latter. Right now I don't use assigned names and do string comparisons on the prefixes, but I'd like to be able to let people open directories by name. > >It could also keep its set of locks and UnLock them after getting a DiskChange > >message, and relock them after it's rescanned the DevList... > > I believe it Checks the list of locks on all Volumes on the workbench when > it gets a disk change, if there are more than it's locks it leaves it up > on the WB, if it is the only one left holding the locks it unlocks them > and the DOS deallocates the Volume node. I thought it'd be something like this. Let me try something... Yep, that's what it does all right. Just popped a disk while the cloud was up and it didn't clear the locks. So, I can't use the same idea in Browser because I'll confuse WorkBench. I guess I'll have to do the hard work of playing with the timestamps myself... Damn. -- -- a clone of Peter (have you hugged your wolf today) da Silva `-_-' -- normally ...!hoptoad!academ!uhnix1!sugar!peter U -- Disclaimer: These aren't mere opinions... these are *values*.