Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jan 2007 11:32:24 +0200
From:      Vasil Dimov <vd@FreeBSD.org>
To:        Oliver Fromme <olli@lurza.secnetix.de>
Cc:        silby@silby.com, xride@x12.dk, freebsd-geom@FreeBSD.ORG
Subject:   Re: Where to start?
Message-ID:  <20070123093224.GA26619@qlovarnika.bg.datamax>
In-Reply-To: <200701230819.l0N8Jxrm003876@lurza.secnetix.de>
References:  <20070122083727.GA61615@qlovarnika.bg.datamax> <200701230819.l0N8Jxrm003876@lurza.secnetix.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070123093224.GA26619>