Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jun 2006 05:49:18 +1000
From:      Peter Jeremy <peterjeremy@optushome.com.au>
To:        "R. B. Riddick" <arne_woerner@yahoo.com>
Cc:        freebsd-fs@freebsd.org, Alexandr Kovalenko <never@nevermind.kiev.ua>, freebsd-current@freebsd.org, freebsd-geom@freebsd.org
Subject:   Re: Journaling UFS with gjournal.
Message-ID:  <20060623194917.GB747@turion.vk2pj.dyndns.org>
In-Reply-To: <20060623083838.86539.qmail@web30308.mail.mud.yahoo.com>
References:  <20060623082209.GD13474@nevermind.kiev.ua> <20060623083838.86539.qmail@web30308.mail.mud.yahoo.com>

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

--HlL+5n6rz5pIUxbD
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, 2006-Jun-23 01:38:38 -0700, R. B. Riddick wrote:
>--- Alexandr Kovalenko <never@nevermind.kiev.ua> wrote:
>> Is it safe to do so on existing filesystem (if I'm using 2nd partition f=
or
>> journal)?
=2E..
>If your existing file system needs its last sector, then it wont work. If =
it
>does not need it, then it might work (although fsck does not check for a
>raw-device shrinkage - I think)...

In my experience, the last partition in a disk slice normally has an
odd number of sectors and UFS definitely can't handle anything smaller
than a fragment (which defaults to 2K) - and I suspect that UFS can't
handle a trailing fragment.  In this case, the last sector is
definitely unused.

I may be wrong but I don't think it's possible for the last sector of
a partition to be FS metadata because the metadata is always at the
beginning of a CG and newfs won't create a CG unless there's some
space for data in the CG.  If there are an integral number of
fragments (or maybe blocks), then marking the last fragment as 'bad'
would seem an adequate solution - the FS will ignore that block but
anything below the filesystem won't see the "bad block" marker.

--=20
Peter Jeremy

--HlL+5n6rz5pIUxbD
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFEnEW8/opHv/APuIcRAjoPAJ0f90leQiv+V3Xu4VpYvnBMZT+XwQCfZIQc
A3v0WxoDBaIt5pM5omNJN58=
=aq1w
-----END PGP SIGNATURE-----

--HlL+5n6rz5pIUxbD--



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