From owner-freebsd-fs@FreeBSD.ORG Tue Aug 31 14:09:11 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D13C210656B0 for ; Tue, 31 Aug 2010 14:09:11 +0000 (UTC) (envelope-from mj@feral.com) Received: from ns1.feral.com (ns1.feral.com [192.67.166.1]) by mx1.freebsd.org (Postfix) with ESMTP id 9E38F8FC29 for ; Tue, 31 Aug 2010 14:09:11 +0000 (UTC) Received: from [192.168.1.2] (m206-63.dsl.tsoft.com [198.144.206.63]) by ns1.feral.com (8.14.3/8.14.3) with ESMTP id o7VE9AFP022983 for ; Tue, 31 Aug 2010 07:09:10 -0700 (PDT) (envelope-from mj@feral.com) Message-ID: <4C7D0D01.7000009@feral.com> Date: Tue, 31 Aug 2010 07:09:05 -0700 From: Matthew Jacob Organization: Feral Software User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 To: freebsd-fs@freebsd.org References: <20100830225841.GA9363@cons.org> <20100831113851.6d449628@ernst.jennejohn.org> In-Reply-To: <20100831113851.6d449628@ernst.jennejohn.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.2.6 (ns1.feral.com [192.67.166.1]); Tue, 31 Aug 2010 07:09:10 -0700 (PDT) Subject: Re: fsync(2) and on-disk write-back cache X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2010 14:09:11 -0000 On FreeBSD, BIO_FLUSH is used to communicate between the filesystem./buffer cache's desire to flush out and the low level cache. > I may be wrong, but it seems to me that the actual cache flush on the > disk is handled at a very low level - in the drivers. > > At least I'm pretty certain that e.g. the ahci code sends flush commands > to the disks. > > -- > Gary Jennejohn > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"