From owner-freebsd-hackers Wed Feb 28 6:20:24 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from hda.hda.com (host65.hda.com [63.104.68.65]) by hub.freebsd.org (Postfix) with ESMTP id 8A62037B729 for ; Wed, 28 Feb 2001 06:20:19 -0800 (PST) (envelope-from dufault@hda.hda.com) Received: (from dufault@localhost) by hda.hda.com (8.11.1/8.11.1) id f1SEILG28001; Wed, 28 Feb 2001 09:18:21 -0500 (EST) (envelope-from dufault) From: Peter Dufault Message-Id: <200102281418.f1SEILG28001@hda.hda.com> Subject: Re: how to actually find out whether data hit the disk? In-Reply-To: <20010228151102.C29400@heechee.tobez.org> from Anton Berezin at "Feb 28, 2001 03:11:02 pm" To: Anton Berezin Date: Wed, 28 Feb 2001 09:18:21 -0500 (EST) Cc: hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > 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