Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jul 1998 00:55:52 +0200
From:      Pierre Beyssac <pb@fasterix.freenix.org>
To:        Terry Lambert <tlambert@primenet.com>, current@FreeBSD.ORG
Subject:   Re: Diagnostic for those with MMAP problems...
Message-ID:  <19980729005552.A16035@fasterix.frmug.fr.net>
In-Reply-To: <199807280048.RAA16684@usr01.primenet.com>; from Terry Lambert on Tue, Jul 28, 1998 at 12:48:24AM %2B0000
References:  <199807280048.RAA16684@usr01.primenet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jul 28, 1998 at 12:48:24AM +0000, Terry Lambert wrote:
> the first is probably impractical for those repeating the glitch
> using INN, but it's worth mentioning.

I don't care: a good news spool is a trashed news spool :-)

I haven't yet tried the NO_SWAPPING test you suggest; I'm reporting
on the following I just tried:

> 2)	Rebuild the software using MMAP; add "PROT_WRITE" to
> 	the protection request.

Apparently INN 2.0 does this already for the active file (but,
interestingly enough, not for the dbz file when it's open read-only).
>From innd/icd.c:

    ICDactpointer = mmap((caddr_t)0, ICDactsize, PROT_READ|PROT_WRITE,
                        MAP__ARG, ICDactfd, (OFFSET_T)0);

I'm going to try to define MMAP_SYNC to DO to enable the following
code in the same file:

    if (msync(ICDactpointer, ICDactsize, MS_ASYNC) < 0) {
        syslog(L_FATAL, "%s msync failed %s %m", LogName, ICDactpath);
        exit(1);
    }   

I'll post the results here if anything interesting comes up.
-- 
Pierre Beyssac	      pb@fasterix.frmug.org pb@fasterix.freenix.org
{Free,Net,Open}BSD, Linux : il y a moins bien, mais c'est plus cher
    Free domains: http://www.eu.org/ or mail dns-manager@EU.org

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



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