Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Apr 2011 09:03:24 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Warner Losh <imp@bsdimp.com>
Cc:        src-committers@FreeBSD.org, Andrey Chernov <ache@FreeBSD.org>, Daniel O'Connor <doconnor@gsoft.com.au>, Alexander Motin <mav@FreeBSD.org>, Nathan Whitehorn <nwhitehorn@FreeBSD.org>, svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org
Subject:   Re: svn commit: r220983 - head
Message-ID:  <20110427070324.GB2185@garage.freebsd.pl>
In-Reply-To: <F39ED077-FFCA-451C-BED7-9C6EA0C16078@bsdimp.com>
References:  <201104240923.p3O9N8QG025386@svn.freebsd.org> <20110424161933.GA18775@vniz.net> <18B3AE1E-467E-4B23-81B9-AB1EDEFE1F7A@gsoft.com.au> <E5C45DAC-6014-42E2-9E1C-BFB7D54EBCB4@bsdimp.com> <34A34338-79E0-435E-9BF1-614D10FC9FC7@gsoft.com.au> <E5C7935B-A333-4818-986C-4FD19DD73381@bsdimp.com> <15C958E3-6CF7-48C4-88C9-2E61AC301657@gsoft.com.au> <4DB786C3.3010607@freebsd.org> <F39ED077-FFCA-451C-BED7-9C6EA0C16078@bsdimp.com>

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

--2oS5YaxWCcQjTEyO
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Apr 26, 2011 at 09:17:04PM -0600, Warner Losh wrote:
> > It's not difficult to add -- the issue is that the mechanism is unrelia=
ble. It doesn't work for all partition types supporting labels, it's hard t=
o figure out what the name of the label provider is in a generic way, and t=
he label providers have a nasty habit of disappearing periodically when you=
 use the underlying provider for anything. Also, retastes don't always work=
=2E For example, if I change the label of a GPT partition, the label provid=
er does not reflect the change until a disk reattach (e.g. a reboot).
>=20
> I know that for ufs, it works well, except for the root partition which r=
equires some dancing to retrofit.  But if you relabel a partition, it shows=
 up right away in /dev/ufs/newlbl.  Guess not all of them are that reliable.
>=20
> The new names, and slightly non-deterministic probe order make it more im=
portant that we shake out the bugs from this as best we can.  I think that =
names/uuid are critical to the future, and we need to fix any remaining iss=
ues.

Labels are kinda tricky and they differ. For example UFS labels or IDs
don't play with tasting well (they were never designed to play well with
such mechanism). You can create file system that is smaller than
underlying provider (newfs -s). How do we know that label is assigned to
the provider we are tasing and not to some other provider?  Currently we
check that based on recorded file system size and provider size, so we
won't create label/id on ad0s1 instead of ad0s1a, but because of this we
won't create label/id at all if file system was created with the -s
option.

GPT labels and IDs should be implemented as part of GPART class and not
GLABEL. Currently if you modify GPT label for a partition in ad0 there
is no write to, eg. ad0p1, so there is no taste event which allows
glabel to detect the change, so the label is not updated in /dev/gpt/.
There is a patch on freebsd-geom@ to move GPT labels/IDs to GPART.

--=20
Pawel Jakub Dawidek                       http://www.wheelsystems.com
FreeBSD committer                         http://www.FreeBSD.org
Am I Evil? Yes, I Am!                     http://yomoli.com

--2oS5YaxWCcQjTEyO
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iEYEARECAAYFAk23v7sACgkQForvXbEpPzT3tACgzVrAoS/NKzQmeGOOBEPe69M4
N8EAn3v8hznAseuiUjPKBweg6HUi56d5
=RIrJ
-----END PGP SIGNATURE-----

--2oS5YaxWCcQjTEyO--



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