Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: eggert@twinsun.com (Paul Eggert)
Subject: Does AFS support RCS?
Date: Fri, 5 Nov 1993 19:46:58 GMT	[thread overview]
Message-ID: <CG1AyC.GsG@twinsun.com> (raw)

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?


             reply	other threads:[~1993-11-05 19:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-11-05 19:46 Paul Eggert [this message]
1993-11-07 15:32 ` Does AFS support RCS? John Hascall
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox