Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 May 2002 14:05:57 -0700 (PDT)
From:      "Andrew P. Lentvorski" <bsder@allcaps.org>
To:        Eugene Grosbein <eugen@svzserv.kemerovo.su>
Cc:        Matthew Dillon <dillon@apollo.backplane.com>, <stable@FreeBSD.ORG>
Subject:   Re: NFS problem with 4.6-PRERELEASE: SIGBUG in Apache
Message-ID:  <20020525135358.B9226-100000@mail.allcaps.org>
In-Reply-To: <3CEF45CE.396892B3@svzserv.kemerovo.su>

next in thread | previous in thread | raw e-mail | index | archive | help
> >    So when updating files which might be mmap()'d over NFS, you have to
> >    be careful not to delete or truncate a file which may be in-use.

Two questions:

1) If the file can actually be updated, why isn't Apache robust in the
face of this?  The fact that the bug pops up on NFS is only a function of
a timing race.  That race also exists on normal file systems, but with a
smaller timing window.

2) Why aren't the programs which are accessing this file putting a lock on
it?

Generally programs do their "own" file locking because NFS file locking
fails on so many platforms.  It's possible that Apache does create some
sort of locking which is non-standard that gets ignored by other programs.

In general, mmap over NFS has "quirks", especially with respect to
locking.  See "NFS Illustrated" for gory details about interactions
between caching/locking and mmap in NFS.

-a


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020525135358.B9226-100000>