From owner-freebsd-stable Fri May 24 22:17:12 2002 Delivered-To: freebsd-stable@freebsd.org Received: from www.svzserv.kemerovo.su (www.svzserv.kemerovo.su [213.184.65.80]) by hub.freebsd.org (Postfix) with ESMTP id 786B737B40D for ; Fri, 24 May 2002 22:17:08 -0700 (PDT) Received: from svzserv.kemerovo.su (kost [213.184.65.82]) by www.svzserv.kemerovo.su (8.12.3/8.12.3) with ESMTP id g4P5Gwb2054959; Sat, 25 May 2002 13:16:58 +0800 (KRAST) (envelope-from eugen@svzserv.kemerovo.su) Message-ID: <3CEF1E41.841937F4@svzserv.kemerovo.su> Date: Sat, 25 May 2002 13:16:50 +0800 From: Eugene Grosbein Organization: SVZServ X-Mailer: Mozilla 4.79 [en] (Win95; U) X-Accept-Language: ru,en MIME-Version: 1.0 To: Matthew Dillon 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> <200205250250.g4P2oSdA060174@apollo.backplane.com> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit 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 Matthew Dillon wrote: > 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 Well, I can try this but I'd like to thing about general approach. Perhaps, mmap should fail for files residing on NFS? For example, Apache will then switch to another method of reading. Eugene To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message