Thread View: comp.bugs.sys5
1 messages
1 total messages
Started by Keith Holder
Mon, 14 Jan 1991 12:11
lockd on V.4 is broken
Author: Keith Holder
Date: Mon, 14 Jan 1991 12:11
Date: Mon, 14 Jan 1991 12:11
18 lines
1584 bytes
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)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads