From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,cf27c2eefc02f04a,start X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1993-11-06 09:43:47 PST Newsgroups: comp.unix.osf.misc Path: gmd.de!xlink.net!howland.reston.ans.net!usc!ucla-cs!twinsun!eggert From: eggert@twinsun.com (Paul Eggert) Subject: Does AFS support RCS? Message-ID: Sender: usenet@twinsun.com Nntp-Posting-Host: spot Organization: Twin Sun Inc, El Segundo, CA, USA Date: Fri, 5 Nov 1993 19:46:58 GMT Someone asked the info-cvs mailing list whether the CVS and RCS version control packages will work under AFS (or whatever the Andrew File System is being called these days). Not having an AFS to play with, I thought I'd ask the net. RCS locks a file "F,v" for writing by creating a lock file ",F," as follows: open(",F,", O_CREAT|O_EXCL|O_TRUNC|O_WRONLY, S_IRUSR|S_IRGRP|S_IROT) This call must be atomic: if two processes execute it simultaneously, at most one must succeed. RCS removes the lock either with `unlink(",F,")' (to abort any changes) or `rename(",F,", "F,v")' (to commit the changes). Both of these calls must also be atomic. RCS does not have read locks; if you're merely reading an RCS file and someone else unlinks it, you continue to read the same file (which now has zero links). Any Posix.1 system must support these atomic actions. Also, NFS supports these atomic actions, except for a combination involving over-the-wire root access that is so rare that it isn't worth worrying about. It would be nice to know that AFS supports them too, at least in the typical case. I vaguely remember that AFS didn't support hard links, so I'm worried about the scenario involving the file with zero links. No doubt OSF has been busy adding Posix compliance, though. Does anybody with AFS experience care to comment about this?