From owner-freebsd-hackers Fri Mar 2 5:31:52 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from heechee.tobez.org (254.adsl0.ryv.worldonline.dk [213.237.10.254]) by hub.freebsd.org (Postfix) with ESMTP id A715037B71C for ; Fri, 2 Mar 2001 05:31:50 -0800 (PST) (envelope-from tobez@tobez.org) Received: by heechee.tobez.org (Postfix, from userid 1001) id 3391754F8; Fri, 2 Mar 2001 14:31:49 +0100 (CET) Date: Fri, 2 Mar 2001 14:31:49 +0100 From: Anton Berezin To: Dag-Erling Smorgrav Cc: Peter Dufault , hackers@FreeBSD.ORG Subject: Re: how to actually find out whether data hit the disk? Message-ID: <20010302143149.D55912@heechee.tobez.org> References: <200102281418.f1SEILG28001@hda.hda.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from des@ofug.org on Fri, Mar 02, 2001 at 01:59:34PM +0100 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Mar 02, 2001 at 01:59:34PM +0100, Dag-Erling Smorgrav wrote: > 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. That's what I suspected. :-( So is there a way, or is not? Thanks, -- May the tuna salad be with you. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message