From owner-freebsd-geom@FreeBSD.ORG Tue Jan 23 09:32:26 2007 Return-Path: X-Original-To: freebsd-geom@FreeBSD.ORG Delivered-To: freebsd-geom@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E694416A400; Tue, 23 Jan 2007 09:32:26 +0000 (UTC) (envelope-from vd@datamax.bg) Received: from jengal.datamax.bg (jengal.datamax.bg [82.103.104.21]) by mx1.freebsd.org (Postfix) with ESMTP id A0EBD13C457; Tue, 23 Jan 2007 09:32:26 +0000 (UTC) (envelope-from vd@datamax.bg) Received: from qlovarnika.bg.datamax (qlovarnika.bg.datamax [192.168.10.2]) by jengal.datamax.bg (Postfix) with SMTP id AAFE7B848; Tue, 23 Jan 2007 11:32:24 +0200 (EET) Received: (nullmailer pid 32169 invoked by uid 1002); Tue, 23 Jan 2007 09:32:24 -0000 Date: Tue, 23 Jan 2007 11:32:24 +0200 From: Vasil Dimov To: Oliver Fromme Message-ID: <20070123093224.GA26619@qlovarnika.bg.datamax> References: <20070122083727.GA61615@qlovarnika.bg.datamax> <200701230819.l0N8Jxrm003876@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="u3/rZRmxL6MmkK24" Content-Disposition: inline In-Reply-To: <200701230819.l0N8Jxrm003876@lurza.secnetix.de> Cc: silby@silby.com, xride@x12.dk, freebsd-geom@FreeBSD.ORG Subject: Re: Where to start? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vd@FreeBSD.org List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jan 2007 09:32:27 -0000 --u3/rZRmxL6MmkK24 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [discussion moved from freebsd-hackers@ to freebsd-geom@] On Tue, Jan 23, 2007 at 09:19:59 +0100, Oliver Fromme wrote: > Vasil Dimov wrote: > > Mike Silbersack wrote: > > > Soeren Straarup wrote: > > > [...] > > > > I'm looking for a project. > > > [...] > > > I'd like to see the ability to run gjournal without reformatting. > > > If you could create a dummy file inside the filesystem, then use > > > that area for the journal, it might be possible. I'm sure that > > > would let a lot more people see if journalling is right for them. > >=20 > > I am not sure about gjournal internals but what if a system crash > > occurs in the middle of a transaction and the fs gets corrupted and > > the data, necessary to fix it is in the journal, but you cannot > > access the journal because the file, which contains the journal, > > is on a corrupted fs? >=20 > I think you should still be able to mount the file system > read-only, even if it's not "clean", so there's no problem > locating the journal file. Particularly, note that the > journal file should probably be located in the root of the > file system, and it will have a constant size and should > be allocated from the start (i.e. it never grows nor > changes allocation), which means there is no way that its > meta data could be damaged. [...] With gjournal not only the metadata is journaled but also the actual data (e.g. files' contents). So writes to the journal file (which is a "regular file" on the FS) should bypass the journaling stuff. Otherwise they will get journaled themselves and it will end up in an endless loop. This thing still looks to me like roping your chest to your leg (instead of to an unmovable object) in order to avoid falling, but I might be wrong... --=20 Vasil Dimov gro.DSBeerF@dv % A complex system that works is invariably found to have evolved from a simple system that works. --u3/rZRmxL6MmkK24 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- iD8DBQFFtdYoFw6SP/bBpCARAkryAJwJgX9uGDrcjgc1WQzECto/vtwdzwCeJkoj Z+Ok9jocapC8IciwUdapjkg= =6dmL -----END PGP SIGNATURE----- --u3/rZRmxL6MmkK24--