home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.hp:9322 comp.sys.sun.admin:5568 comp.sys.sun.misc:3714 comp.unix.misc:3250 comp.protocols.nfs:2070 comp.unix.msdos:935
- Path: sparky!uunet!gatech!rutgers!utcsri!helios.physics.utoronto.ca!alchemy.chem.utoronto.ca!system
- From: system@alchemy.chem.utoronto.ca (System Admin (Mike Peterson))
- Newsgroups: comp.sys.hp,comp.sys.sun.admin,comp.sys.sun.misc,comp.unix.misc,comp.protocols.nfs,comp.unix.msdos
- Subject: Re: NFS file locking
- Message-ID: <1992Aug16.131858.7219@alchemy.chem.utoronto.ca>
- Date: 16 Aug 92 13:18:58 GMT
- References: <889@marvin.jpl.oz>
- Organization: University of Toronto Chemistry Department
- Lines: 33
-
- In article <889@marvin.jpl.oz> lm@marvin.jpl.oz (Luigi Martin) writes:
- >
- >I have asked HP support, & they say the locking must be initiated on the
- >client, so the problem is with PCNFS.
- >
- >I have asked Sun support, & they say that lockd on the HP doesn't support the
- >lock requests from PCNFS.
- >
- >I don't like buck-passing, particularly when I am caught in the middle.
-
- I don't either, but this is standard behaviour -- vi on UNIX doesn't
- lock the file until it wants to write on it, so with multiple active edit
- sessions, the last writer will win. This problem is partially handled by the
- RCS/SCCS source code control systems which require a user to "check out"
- a routine before touching it, and if you can't "get" a routine, you better
- not try to edit the source file that you will find lying around
- somewhere because someone else is working on it.
-
- I don't know if your PC editors will try to lock the file for
- the duration of the edit session, but I doubt it (they would have to
- be "network-aware" versions, since on a normal PC, DOS won't prevent
- this). In any case, it would have to be done by the editor; NFS doesn't
- lock anything automatically. [ HP gets 1/2 point :-) ]
-
- There is also the possibility that even if your clients and PCNFS are
- trying to do the locking, 'lockd' doesn't work -- the version
- originally distributed by Sun certainly didn't do anything, and
- I think HP-UX 8.07 came out (or the distribution was frozen, which would
- be about 3 months earlier) before the fix did. [ Sun may get 1/2 point
- though I bet they didn't tell you why HP's lockd may not work :-) ]
- --
- What are the chances that any computer system will ever "work" properly?
- ... and Slim just left town. -*- Mike Peterson, SysAdmin, U/Toronto Chemistry
-