Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Feb 2001 09:18:21 -0500 (EST)
From:      Peter Dufault <dufault@hda.hda.com>
To:        Anton Berezin <tobez@tobez.org>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: how to actually find out whether data hit the disk?
Message-ID:  <200102281418.f1SEILG28001@hda.hda.com>
In-Reply-To: <20010228151102.C29400@heechee.tobez.org> from Anton Berezin at "Feb 28, 2001 03:11:02 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> > Do an msync with MS_SYNC someplace.  Also, use MAP_NOSYNC in
> > mmap until 4.3 when Matt Dillon plans to make that the default behavior.
> 
> Ahh, no.  That's the other way around - I do not *want* it to hit the
> disk, but would like to *know* when it nevertheless does.

OK, doing a stat and checking the mtime should give you
the info at the expense of polling, I can't think of another way.

Peter

--
Peter Dufault (dufault@hda.com)   Realtime development, Machine control,
HD Associates, Inc.               Fail-Safe systems, Agency approval

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




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