home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / programm / 4023 < prev    next >
Encoding:
Text File  |  1992-07-30  |  1.6 KB  |  38 lines

  1. Newsgroups: comp.unix.programmer
  2. Path: sparky!uunet!cs.utexas.edu!torn!cunews!csi.uottawa.ca!news
  3. From: dominic@scooter.genie.uottawa.ca (Dominic Richens)
  4. Subject: Re: File locking question
  5. Message-ID: <1992Jul30.183006.15648@csi.uottawa.ca>
  6. Originator: dominic@
  7. Sender: news@csi.uottawa.ca
  8. Nntp-Posting-Host: scooter.genie.uottawa.ca
  9. Reply-To: dominic@shamin.genie.uottawa.ca
  10. Organization: MCRLab - University of Ottawa
  11. References:  <1992Jul30.125226.16473@dragon.acadiau.ca>
  12. Date: Thu, 30 Jul 92 18:30:06 GMT
  13. Lines: 23
  14.  
  15.  
  16. In article <1992Jul30.125226.16473@dragon.acadiau.ca>, alan@dragon.acadiau.ca (Alan McKay) writes:
  17. ! Will file locking work properly on an NFS disk mounted on multiple
  18. ! hosts?  I want to lock a file in the user's home directory so that
  19. ! other active sessions cannot touch the file (yes, the other sessions
  20. Yes, if the locking is advisory.  
  21.  
  22. ! are checking the lock too).  However, other sessions could be on
  23. ! any one of a number of machines, included Suns and a CDC4680.  Will
  24. ! "flock"ing still work?
  25. No.
  26.  
  27. You want `lockf', which, depending on the mode of the file, will
  28. give you an advisory lock that will work over NFS.  Look at the man page
  29. for lockf(3/S) for specifics.  Also you might want to browse lockd(8C/NADM),
  30. and chmod(2/S). 
  31.  
  32. dominic
  33. -- 
  34. !@$^&*)($#$@!@#$^&*()_+_)(*&^$#@!$^&*()_+)(*&^$#@$^&*+_(*&^$#@#^&*()&*$#@(*&+_$!
  35.  Dominic Richens  :  dominic@shamin.genie.uottawa.ca  :  Tel. (613) 564 9911 
  36.       MCRLab, Dept of Elec Eng, University of Ottawa, K1N 6N5, CANADA   
  37. "You construct intricate rituals which allow you to touch the skin of other men"
  38.