Article View: news.software.nntp
Article #24692Re: history.dir problem
From: Department of Redundancy Departm...
Date: Wed, 31 Dec 1997 00:00
Date: Wed, 31 Dec 1997 00:00
44 lines
2427 bytes
2427 bytes
On Mon, 29 Dec 1997, Stephan Forseilles wrote:
> spool/articles and spool/over.view shared with nfs. Recently I also
> shared history because without it, nnrpd won't be able to answer ARTICLE
>
> Problem: nnrpd on linux seems puzzled by the history.dir created by the
> innd running on the DIGITAL.
>
> Here's how the history.dir looks like (the Digital Unix is happy with
> it):
>
> dbz 3 6112831 9 C 34359738368 34359738367 28 8 7 6 5 4 3 2 1 0
Wow, kewl. An OS with 64-bit longs, that works... Nice.
> Would it have somthing to do with the fact that the Digital is 64bits
> and the Linux 32bits?
That's it. You could do two things to fix this, either by breaking
your dbz on Digital, or fixing Linux to grok it properly.
If you want to do things the less efficient way, you need to change
the `long' in your Digital dbz and makehistory/expire/grephistory source
code to be whatever gives you a 32-bit rather than 64-bit number.
The better way to fix this, since your 35 bits of tagging (which may
not be used as efficiently as they could be) give you far more than what
you'd get with only the 3 bits provided by a 32-bit long, would be to fix
the source code with Linux to use `long long' where needed to support
Digital's 64-bit longs. I haven't done this myself with Linux (although
have had success with both FreeBSD and SGI IRIX 6.2), but you should be
able to use Joe Greco's 64-bit dbz hacks as the basis for this if you need
some guidance. Not everything in this patch set is required for a
reader-only box. Then rebuild your libinn.a and recompile nnrpd to use
it, and it should work fine.
Barry Bouwsma
will sleep through new year festivities for food
Technical Details
Message-ID:
<Pine.LNX.3.96.971231044807.244B-100000@coredump.int.tele.dk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<34A7740E.E108F9F6@skynet.be>Show Full Headers
Complete Article Headers
Message-ID: <Pine.LNX.3.96.971231044807.244B-100000@coredump.int.tele.dk> Subject: Re: history.dir problem Date: Wed, 31 Dec 1997 00:00:00 +0000 From: Department of Redundancy Department <abuse@int.tele.dk> References: <34A7740E.E108F9F6@skynet.be> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 311520179 Content-Type: TEXT/PLAIN; charset=US-ASCII Organization: still writing 1996 on my checks Mime-Version: 1.0 Reply-To: ag786@yfn.ysu.edu Newsgroups: news.software.nntp