From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,309fafe3fbcdcc3a X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-02-19 10:23:30 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!server1.netnews.ja.net!pegasus.csx.cam.ac.uk!mjr19 From: mjr19@cus.cam.ac.uk (M.J. Rutter) Newsgroups: comp.unix.tru64 Subject: Re: vi hangs Date: 19 Feb 2002 18:23:27 GMT Organization: University of Cambridge, England Message-ID: References: <3C5FD02B.F9F8E29C@home.com> NNTP-Posting-Host: libra.cus.cam.ac.uk Xref: archiver1.google.com comp.unix.tru64:6817 In article <3C5FD02B.F9F8E29C@home.com>, Scott Horton 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