Path: utzoo!attcan!uunet!lll-winken!ames!pasteur!ucbvax!decwrl!decvax!eagle_snax!geoff From: geoff@eagle_snax.UUCP ( R.H. coast near the top) Newsgroups: comp.protocols.nfs Subject: Re: PC-NFS Locking Problem Message-ID: <449@eagle_snax.UUCP> Date: 23 Jan 89 14:04:22 GMT References: <183@smsdpg.uu.net> Reply-To: geoff@eagle_snax.UUCP (Geoff Arnold @ Sun ECD - R.H. coast near the top) Organization: Sun Microsystems - East Coast Division Lines: 38 In article <183@smsdpg.uu.net> seg@smsdpg.uu.net (Scott Garfinkle) writes: >Has anybody done anything with sharing/locking under DOS 3.x and PC-NGS? >The manual specifically states that advisory locking is supported via the >standard DOS function calls. However, I wrote the following simple program >to test this stuff and found that my requests for locks are completely >ignored -- this program, run from two different PC nodes at the same time, >returns successfully from acquiring a lock on the same file on out server! >Am I missing something? Setup: AT clone and PC clone, both running PC-DOS >3.3 with SHARE installed and PC-NFS v3.0; Server==Sun 3/180 running SunOS 4.0. >(PCs are using the WD8003 ethernet cards.) Code for test follows (for MSC5.1) > Scott E. Garfinkle > SMS Data Products Group, Inc. > uunet!smsdpg!seg (smsdpg!seg@uunet.uu.net)( The use of SHARE is completrely irrelevant, although if you start it after PC-NFS it may confuse things (I'll try it in a few minutes). The server must be running a version of the lock manager which supports the PC extensions: run rpcinfo -u servername 100021 3 and if you see program 100021 version 3 ready and waiting all is well. If you see rpcinfo: RPC: Program not registered program 100021 version 3 is not available you should install a copy of the modified network lock manager from the PC-NFS distribution kit. Then make sure that when you mount the drive in NFSCONF you select Use lock manager (required) for "Options"; if you prefer to run NET USE by hand, append a "/MS" switch to the command. Geoff -- Geoff Arnold, Sun Microsystems Inc. | "It is well known that the longer one PC Dist. Sys. Group (home of PC-NFS) |postpones a pleasure, the greater the UUCP: {hplabs,decwrl...}!sun!garnold |pleasure when it arrives. Therefore, if ARPA: garnold@sun.com |one postpones it forever..." (Smullyan)