From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,cf27c2eefc02f04a X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1993-11-07 07:49:51 PST Newsgroups: comp.unix.osf.misc Path: gmd.de!xlink.net!howland.reston.ans.net!vixen.cso.uiuc.edu!newsrelay.iastate.edu!news.iastate.edu!john From: john@iastate.edu (John Hascall) Subject: Re: Does AFS support RCS? Message-ID: Sender: news@news.iastate.edu (USENET News System) Organization: Iowa State University, Ames, IA References: Date: Sun, 7 Nov 1993 15:32:23 GMT In article 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