From: mjr19@cus.cam.ac.uk (M.J. Rutter)
Subject: Re: vi hangs
Date: 19 Feb 2002 18:23:27 GMT [thread overview]
Message-ID: <a4u56v$gli$1@pegasus.csx.cam.ac.uk> (raw)
In-Reply-To: 3C5FD02B.F9F8E29C@home.com
In article <3C5FD02B.F9F8E29C@home.com>,
Scott Horton <scotthorton7@home.com> wrote:
>I have installed (from scratch) a few V5.1 and V5.1a machines.
>Each of these machines has the same following problem:
>When NFS mounting a filesystem (automount,autofs,hard)
>from a NettApp, vi'ing an existing file hangs. The file data
>eventually comes up in the xterm...about 10 minutes later.
>
>trace produces the following:
>.
>.
>dup (6) = 7 [hang point]
>flock (6,LOCK_SH|LOCK_NB) = 0 [much later]
>
>file comes up. In the xterm screen:
>File opened by another process
>--------------
>If I disable NFS locking, things work as expected. 4.0X machines
>work just fine. Any help would be appreciated.
A partial answer is that with 4.0X flock locks locally only, and
lockf/fcntl (which vi does not use) attempt to lock across NFS.
With 5.X, flock also attempts to lock across NFS. Hence the difference
in behaviour between 4.0X and 5.X (which is actually admitted to in
the flock man page).
As for what is broken with your NFS locking arrangements, it could
be almost anything...
--
MJR
prev parent reply other threads:[~2002-02-19 18:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-06 0:26 vi hangs Scott Horton
2002-02-18 19:52 ` Thomas Buettner
2002-02-19 18:23 ` M.J. Rutter [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox