From owner-freebsd-fs@FreeBSD.ORG Mon Jun 19 14:35:13 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 0DC9C16A518 for ; Mon, 19 Jun 2006 14:35:12 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4700143D49 for ; Mon, 19 Jun 2006 14:35:11 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id B5FB65131F; Mon, 19 Jun 2006 16:35:10 +0200 (CEST) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id EE17150EA7; Mon, 19 Jun 2006 16:35:04 +0200 (CEST) Date: Mon, 19 Jun 2006 16:32:31 +0200 From: Pawel Jakub Dawidek To: "R. B. Riddick" Message-ID: <20060619143231.GF1130@garage.freebsd.pl> References: <20060619131101.GD1130@garage.freebsd.pl> <20060619133706.63795.qmail@web30302.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DrWhICOqskFTAXiy" Content-Disposition: inline In-Reply-To: <20060619133706.63795.qmail@web30302.mail.mud.yahoo.com> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 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 14:35:13 -0000 --DrWhICOqskFTAXiy Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 19, 2006 at 06:37:06AM -0700, R. B. Riddick wrote: +> --- 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.? 4 is done via vfs_write_suspend() function, which synchronize file system once again. +> Do we write _new_ blocks of a file via the journal or directly to the fi= le +> system (I mean: If we have a new file, that grows sequentially from 0 by= tes to +> 1GB, it would save some disc access, if we didn't write the data to the +> journal)? As I said gjournal is below file system layer. It receives I/O requests only and cannot say which one is related to growing file, which has metadata inside, etc. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --DrWhICOqskFTAXiy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFElrV/ForvXbEpPzQRArG5AJwPSlBnmkANdK8BeVcc/Z7yyux+IQCgs8AO KOtRRf+sOspu7+/IF6PHXjs= =ypFh -----END PGP SIGNATURE----- --DrWhICOqskFTAXiy--