libreplace and the mmap blacklist

Rusty Russell rusty at ozlabs.org
Mon Jul 4 20:00:25 MDT 2011


On Mon, 04 Jul 2011 07:57:19 -0400, simo <idra at samba.org> wrote:
> On Mon, 2011-07-04 at 20:59 +1000, Andrew Bartlett wrote:
> > I've been looking into mmap() and tdb, and noticed the MMAP_BLACKLIST
> > (for HPUX).  We seem to define this for the autoconf libreplace build,
> > but not the waf build. 
> > 
> > What is the right way to get mmap() banned on the platform?
> > 
> > Does anyone know if the alleged brokenness of mmap() on HP-UX is
> > detectable with configure, or is it just subtly wrong?
> 
> IIRC HP-UX does not have page cache coherence, it may be detectable in
> configure I guess by doing both memory and file based operations, but I
> don't think it is worth to waste so much time on it, HP-UX is basically
> dead after all.

Yes, it was the incoherence.  I don't know if this is still current or
only on ancient versions of HPUX.

If someone has an HPUX box to test on, I'd love to try to write a test
for it.  Otherwise, we should simply say "HPUX does not support mmap".

Cheers,
Rusty.


More information about the samba-technical mailing list