inn-stable on HP/UX

Russ Allbery rra at stanford.edu
Mon Jun 7 19:08:45 UTC 2004


Alex Kiernan <alexk at alexk.eng.demon.net> writes:

> So you'd have:

> writer: innd, expireover, tdx-util

> reader: nnrpd

> Short of introducing a separate file you lock on per group I can't
> think how to make it work.

I was thinking about that this morning; wouldn't that work fairly well?
After all, all you need is a file that's the same size as group.index that
you can do byte-range locking on.  I think the changes are actually fairly
small; you'd have to add a new lockfd element to the index structure, add
nfsreader || nfswriter cases to the low-level lock routines to use lockfd
instead, and make sure to expand the lock file with an fseek and write
whenever you expand the index file.  It shouldn't be more than 50 lines of
code total, if that.

-- 
Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>

    Please send questions to the list rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.


More information about the inn-workers mailing list