Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jan 2007 05:30:11 +1100
From:      Peter Jeremy <peterjeremy@optushome.com.au>
To:        perryh@pluto.rain.com
Cc:        vd@freebsd.org, xride@x12.dk, freebsd-hackers@freebsd.org
Subject:   Re: Where to start?
Message-ID:  <20070123183011.GK838@turion.vk2pj.dyndns.org>
In-Reply-To: <45b5027e.g8Hs/VOZs%2B63TD6V%perryh@pluto.rain.com>
References:  <20070119201935.GA60202@x12.dk> <20070120024614.E99400@odysseus.silby.com> <20070122083727.GA61615@qlovarnika.bg.datamax> <45b5027e.g8Hs/VOZs%2B63TD6V%perryh@pluto.rain.com>

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

--H1spWtNR+x+ondvy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, 2007-Jan-22 10:29:18 -0800, perryh@pluto.rain.com wrote:
>I would guess that if a way could be found to preallocate the
>journal space (as with mkfile(8) in sufficiently-old systems),

mkfile(8)ing a journal is easy.  This would not guarantee that the
journal was a contiguous block though and the journalling code would
also need to be able to follow the journal contents through a block
list chain defined by an inode - this is not difficult but not as easy
as having a single contiguous chunk of space.

>and then record its location in a reasonably-secure location
>(the superblock?), it could be accessed during recovery without
>reference to possibly-corrupt filesystem metadata.

The superblock is the logical location.  There are a number of
spare fields in the superblock that could potentially be used to
contain a journal location.

Files within UFS are described by an inode number so the 'location'
of the journal would be an inode number.  The journal code would
need to verify that the given inode was internally consistent before
it accessed the data.

--=20
Peter Jeremy

--H1spWtNR+x+ondvy
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)

iD8DBQFFtlQz/opHv/APuIcRAiR2AKC3t9oe1OIsq35XmnW/2CXxcEUMigCfYyeD
nK/VH0J2Y9tSztdjW96jooM=
=2iwc
-----END PGP SIGNATURE-----

--H1spWtNR+x+ondvy--



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