From owner-freebsd-fs@FreeBSD.ORG Mon Jun 19 13:37:08 2006 Return-Path: X-Original-To: freebsd-fs@FreeBSD.org Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 866C016A474 for ; Mon, 19 Jun 2006 13:37:08 +0000 (UTC) (envelope-from arne_woerner@yahoo.com) Received: from web30302.mail.mud.yahoo.com (web30302.mail.mud.yahoo.com [68.142.200.95]) by mx1.FreeBSD.org (Postfix) with SMTP id D06E143D49 for ; Mon, 19 Jun 2006 13:37:07 +0000 (GMT) (envelope-from arne_woerner@yahoo.com) Received: (qmail 63799 invoked by uid 60001); 19 Jun 2006 13:37:06 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=KIXAjzxgVoVxAHYyberrno/uCLF82sMDszLDE9CAwG7BMlnhuFo7ihE9gYUnxwX6NsIKqyPnjEbRKDhTjn6+581PWdIF/dOagKysRBBSfGBXvGMWretgd+A5Z/M6TPbfj9crsUoWCZft8iJgyQOn3eylb1fseTQ1MuqDg1hj6cE= ; Message-ID: <20060619133706.63795.qmail@web30302.mail.mud.yahoo.com> Received: from [213.54.84.110] by web30302.mail.mud.yahoo.com via HTTP; Mon, 19 Jun 2006 06:37:06 PDT Date: Mon, 19 Jun 2006 06:37:06 -0700 (PDT) From: "R. B. Riddick" To: Pawel Jakub Dawidek In-Reply-To: <20060619131101.GD1130@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-fs@FreeBSD.org Subject: Re: Journaling UFS with gjournal. 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: Mon, 19 Jun 2006 13:37:08 -0000 --- Pawel Jakub Dawidek wrote: > 2. If we have file system, synchronize it. > 3. Mark file system as clean. > 4. Block all write requests to the file system. > Shouldn't we do 4. before 2.? Do we write _new_ blocks of a file via the journal or directly to the file system (I mean: If we have a new file, that grows sequentially from 0 bytes to 1GB, it would save some disc access, if we didn't write the data to the journal)? I like the BIO_FLUSH idea... -Arne __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com