Technical article 102449

Unable to lock a file while running an application on an NFS Filesystem

OpenServer 5.0.0OpenServer 5.0.2

Written · Last revised

Problem

An attempt to lock a file using lockf(S) fails on the first attempt to a file on a newly mounted filesystem. The errno value returned by the lockf(S) call is ENOLINK.

Cause

There is a fault in the NFS Runtime component of these products:

SCO OpenServer Desktop System Release 5.0.0, 5.0.2 SCO OpenServer Enterprise System Release 5.0.0, 5.0.2 SCO Internet FastStart Release 1.0.0

This results in an incorrect return value for the first lockf(S) call against any file on a newly NFS mounted filesystem.

Solution

This problem has been reported to SCO Engineering and is scheduled to be addressed in a future release of SCO OpenServer 5.

From the Xinuos technical article database, record 102449. Reproduced with permission. The original is at www.sco.com/ta/102449, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.