Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: john@iastate.edu (John Hascall)
Subject: Re: Does AFS support RCS?
Date: Sun, 7 Nov 1993 15:32:23 GMT	[thread overview]
Message-ID: <CG4oHz.3rG@news.iastate.edu> (raw)
In-Reply-To: CG1AyC.GsG@twinsun.com

In article <CG1AyC.GsG@twinsun.com> eggert@twinsun.com (Paul Eggert) writes:
}Someone asked the info-cvs mailing list whether the CVS and RCS version
}control packages will work under AFS ...

}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.

  As far as I know, these are all atomic (in any event we use RCS on AFS).

}I vaguely remember that AFS didn't support hard links, so I'm worried
}about the scenario involving the file with zero links.

  AFS supports hard links *within* a directory:
    pooh.cc> cd /afs/iastate.edu/project/john
    pooh.cc> mkdir foo
    pooh.cc> touch bar
    pooh.cc> ln bar baz
    pooh.cc> ln bar foo/bah
    foo/bah: Cross-device link

John
-- 
John Hascall                   ``An ill-chosen word is the fool's messenger.''
Systems Software Engineer
Project Vincent
Iowa State University Computation Center  +  Ames, IA  50011  +  515/294-9551


      reply	other threads:[~1993-11-07 15:32 UTC|newest]

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