From owner-freebsd-hackers Fri Mar 2 4:59:55 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 651D037B719 for ; Fri, 2 Mar 2001 04:59:41 -0800 (PST) (envelope-from des@ofug.org) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id NAA84915; Fri, 2 Mar 2001 13:59:35 +0100 (CET) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Peter Dufault Cc: Anton Berezin , hackers@FreeBSD.ORG Subject: Re: how to actually find out whether data hit the disk? References: <200102281418.f1SEILG28001@hda.hda.com> From: Dag-Erling Smorgrav Date: 02 Mar 2001 13:59:34 +0100 In-Reply-To: Peter Dufault's message of "Wed, 28 Feb 2001 09:18:21 -0500 (EST)" Message-ID: Lines: 14 User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Peter Dufault writes: > > > 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. Won't help. You'll get the same mtime no matter whether the file is actually written to disk or not. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message