bogofilter over NFS

Piotr KUCHARSKI chopin at sgh.waw.pl
Mon Feb 3 17:15:30 CET 2003


On Mon, Feb 03, 2003 at 07:59:07AM -0800, Dan Stromberg wrote:
> > Did anyone use bogofilter on a NFS-mounted HOME, where all mails
> > and also .bogofilter/.db are located? I'm experiencing some strange
> > problems.
> I do, without problems, between two redhat 7.3 hosts with current kernel
> patches.

Let's say that Linux NFS is out of question, they are almost always
horribly broken. I'm using Solaris.

> NFS locking is a frequent source of problems.  If you study the procmail
> source, you'll get an indication of the extremes people have gone to in
> order to work around the bugs.

In bogofilter 0.7.4 it worked. In bogofilter 0.10.1.4 it does not work.
(It doesn't even pass make check, looping over fcntl(), but what locked
the test files in the first place, that it cannot regain lock?)

I'm thinking, perhaps it is the change from one F_SETLKW to
many F_SETLK in a loop? I don't quite see another explanation.

Of course fcntl() works with no problem, I tested it with little app, which
basicly does 'fcntl(); sleep' and of course:

$ ./a.out fcntltest.c  &
fcntl returned 0
$ ./a.out fcntltest.c  &
fcntl returned -1
Error locking file: Resource temporarily unavailable

And EAGAIN is exactly what's I'm observing. Recent update
(to .5) about random wait in fcntl() doesn't make a difference.

> I'm hopeful that the locking in NFS v4 will work better.  In v4, locking's
> finally integrated into the protocol instead of being bolted on as an
> afterthought.

But that is the song of a far future.

p.

-- 
Beware of he who would deny you access to information, for in his
heart he dreams himself your master.   -- Commissioner Pravin Lal
http://nerdquiz.sgh.waw.pl/  -- polska wersja quizu dla nerdów ;)




More information about the Bogofilter mailing list