From owner-freebsd-current@FreeBSD.ORG Thu Aug 10 22:37:33 2006 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 386D316A4DD; Thu, 10 Aug 2006 22:37:33 +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 84DB643D46; Thu, 10 Aug 2006 22:37:32 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 633145138A; Fri, 11 Aug 2006 00:37:31 +0200 (CEST) Received: from localhost (dkd162.neoplus.adsl.tpnet.pl [83.24.7.162]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id E03635131F; Fri, 11 Aug 2006 00:37:26 +0200 (CEST) Date: Fri, 11 Aug 2006 00:36:37 +0200 From: Pawel Jakub Dawidek To: Craig Boston , freebsd-fs@FreeBSD.org, freebsd-current@FreeBSD.org, freebsd-geom@FreeBSD.org Message-ID: <20060810223637.GB1389@garage.freebsd.pl> References: <20060808195202.GA1564@garage.freebsd.pl> <20060810184702.GA8567@nowhere> <20060810192841.GA1345@garage.freebsd.pl> <20060810210535.GA9065@nowhere> <20060810222942.GA1389@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eJnRUKwClWJh1Khz" Content-Disposition: inline In-Reply-To: <20060810222942.GA1389@garage.freebsd.pl> 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=-0.5 required=3.0 tests=BAYES_00,RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: Subject: Re: GJournal (hopefully) final patches. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Aug 2006 22:37:33 -0000 --eJnRUKwClWJh1Khz Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 11, 2006 at 12:29:42AM +0200, Pawel Jakub Dawidek wrote: > On Thu, Aug 10, 2006 at 04:05:35PM -0500, Craig Boston wrote: > > On Thu, Aug 10, 2006 at 09:28:41PM +0200, Pawel Jakub Dawidek wrote: > > > When you mount file system it sends BIO_GETATTR "GJOURNAL::provider" > > > requests. So as long as classes between the file system and gjournal > > > provider pass BIO_GETATTR down, it will work. > > >=20 > > > I prefer to put gjournal on the top, because it gives consistency to > > > layers below it. [...] > > > > > > [snip] > > >=20 > > > Fortunatelly with GEOM you can freely mix your puzzles. > >=20 > > Would there be any ill effects to putting multiple filesystems inside a > > single gjournal, say with a bsdlabel or gpt on it? >=20 > I don't see any problems with such configuration, but there are no > optimization like "synchronize all file systems and then switch > journals", so it will go like "synchronize one file system switch > journals, synchronize another file system, switch journals, etc.". Ok, on second thought it won't work. If you have many file systems on one gjournal, you synchronize one file system and switch journals leaving the rest of file systems in an inconsistent state. To make it work reliable I'd need to implement the optimization I mentioned, ie. sync all file systems and then switch journals. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --eJnRUKwClWJh1Khz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iD8DBQFE27T1ForvXbEpPzQRAnwYAJ412dgP+UIfoEgtDD7jrx+ot3UnVwCg81XB H1HlYHamfl2nw/yCB7wK7PI= =qDh1 -----END PGP SIGNATURE----- --eJnRUKwClWJh1Khz--