🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.sys5
Article #298

lockd on V.4 is broken

#298
From: Keith Holder
Date: Mon, 14 Jan 1991 12:11
18 lines
1584 bytes
I am trying to put diskless workstation support into V.4 and have come across
a problem with the NFS locking daemon, lockd. It seems that when a client
crashes and then reboots, the server does not release the locks previously 
held by the client. The problem is highlighted by the fact  that the server 
still replies to the client on the old connection, the client does not see the 
reply that the file is still locked (it is listening on another port) , so it
re-issues a new request. This continues until the server fills its own internal 
lock table.
	Looking into the problem I have noticed some anomalies. The code
for dealing with  a client crash/recovery  is missing ( compared to SunOS 4.0).
The locking code (both kernel and lockd) uses the `sysid' field of the lock 
data structure, does anyone know what this should be set to? Currently it 
contains the address of a data buffer, which randomly changes for each repeated 
lock request.
	The reason why I need this to work, is that /sbin/mount and
the file system specific mount programs all create and use lock files.
-------------------------------------------
Keith Holder, UniSoft Ltd (khh@root44.co.uk)
Technical Details
Message-ID: <2574@root44.co.uk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!ukc!pyrltd!root44!khh

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!ukc!pyrltd!root44!khh
From: khh@root.co.uk (Keith Holder)
Newsgroups: comp.bugs.sys5
Subject: lockd on V.4 is broken
Summary: lockd on V.4 is broken
Keywords: lockd, V.4
Message-ID: <2574@root44.co.uk>
Date: 14 Jan 91 12:11:22 GMT
Distribution: comp
Organization: UniSoft Ltd., London, England
Lines: 18