From owner-freebsd-stable Fri May 24 19:50:34 2002 Delivered-To: freebsd-stable@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id 91A9137B400 for ; Fri, 24 May 2002 19:50:29 -0700 (PDT) Received: from apollo.backplane.com (localhost [127.0.0.1]) by apollo.backplane.com (8.12.3/8.12.3) with ESMTP id g4P2oSZF060175; Fri, 24 May 2002 19:50:29 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.3/8.12.3/Submit) id g4P2oSdA060174; Fri, 24 May 2002 19:50:28 -0700 (PDT) Date: Fri, 24 May 2002 19:50:28 -0700 (PDT) From: Matthew Dillon Message-Id: <200205250250.g4P2oSdA060174@apollo.backplane.com> To: Eugene Grosbein Cc: stable@FreeBSD.ORG Subject: Re: NFS problem with 4.6-PRERELEASE: SIGBUG in Apache References: <3CEE5094.EFF31B42@grosbein.pp.ru> <200205242137.g4OLbFmi058923@apollo.backplane.com> <20020525102224.A43047@svzserv.kemerovo.su> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG :Well, that had not occured till 4.6-PRERELEASE. :How can that be avoided? : :> The file in question appears to be /mnt/main/netstat/index.html. : :Exactly. : :> So the question is: Are you modifying, copying, overwriting, or :> deleting this file on a different nfs client or on the server? : :NFS server updates this file often. : :Eugene Grosbein You can try two things. First, try this: update the file as index.html.new mv index.html.new index.html If that doesn't work then you may have to do it non-atomically and keep the last file around so any open file descriptors and mmap()ings on the client remain valid. update the file as index.html.new mv index.html index.html.old mv index.html.new index.html -Matt Matthew Dillon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message