Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!apple!oliveb!mipos3!pinkas From: pinkas@cadev5.intel.com (Israel Pinkas ~) Newsgroups: gnu.emacs.bug Subject: Re: Lock files Message-ID: Date: 14 Sep 89 22:24:27 GMT References: <922@mipos3.intel.com> Sender: news@mipos3.intel.com Organization: Corporate CAD, INTeL Corporation, Santa Clara, CA Lines: 30 In-reply-to: nate@hobbes.intel.com's message of 14 Sep 89 16:17:52 GMT In article <922@mipos3.intel.com> nate@hobbes.intel.com (Nate Hess) writes: > How about prepending the hostname to the lock filename, so that locks > created in an NFS'ed, shared lock directory are unique across machines. I don't like this. I would rather have to break bogus locks for machine specific files (e.g /etc/motd) than have two people edit an NFS mounted file simultaneously (e.g. ~/.login). Most sites mount partitions so that they have the same name on all the partitions. For example, my home directory is /usr/users/ccad/edend/pinkas on all machines that mount it. If we implement what Nate suggests, two people could edit my .plan file without realizing it. On the other hand, Nate's suggestion will eliminate the bogus message about breaking a lock when two people attempt to modify /etc/motd on two machines that share a lock directory. Besides, I have run into a few problems with NFS shared lock directories due to the write buffering. -Israel -- -------------------------------------- Disclaimer: The above are my personal opinions, and in no way represent the opinions of Intel Corporation. In no way should the above be taken to be a statement of Intel. UUCP: {amdcad,decwrl,hplabs,oliveb,pur-ee,qantel}!intelca!mipos3!cadev4!pinkas ARPA: pinkas%cadev4.intel.com@relay.cs.net CSNET: pinkas@cadev4.intel.com