TDB on OpenBSD problem.
MCCALL,DON (HP-USA,ex1)
don_mccall at hp.com
Fri May 4 20:20:02 GMT 2001
Thanks, Herb.
You're right, of course!
Hope this helps,
Don
"Reason, not volume, is the primary
differentiator between a discussion, and an
argument."
-----Original Message-----
From: Herb Lewis [mailto:herb at chomps.engr.sgi.com]
Sent: Friday, May 04, 2001 2:12 PM
To: samba-technical at lists.samba.org
Subject: Re: TDB on OpenBSD problem.
"MCCALL,DON (HP-USA,ex1)" wrote:
>
> Hi Tridge,
> I'm no programmer, and my understanding of mmapped files is slim, but I
> noted in the man page of mmap, after a discussion with one of my HP-UX
> buddies about buffercache vs page cache on HP-UX:
>
> The application must ensure correct synchronization when using mmap()
> in conjunction with any other file access method, such as read() and
> write(), standard input/output, and shmat().
>
> So I added a call to msync() right before the call to test() to the test
> program, and with this I resolve the inconsistency on the 11.0 box I was
> seeing the error on. Follows is the modified code:
Setting the MS_ASYNC flag instead of MS_SYNC should be sufficient as
the read should then get if from the buffer cache but the msync call
doesn't have to wait for everything to go to physical disk.
--
======================================================================
Herb Lewis Silicon Graphics
Networking Engineer 1600 Amphitheatre Pkwy MS-510
Strategic Software Organization Mountain View, CA 94043-1351
herb at sgi.com Tel: 650-933-2177
http://www.sgi.com Fax: 650-932-2177
======================================================================
More information about the samba-technical
mailing list