Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Oct 2011 17:56:11 +0400
From:      Lev Serebryakov <lev@FreeBSD.org>
To:        Miroslav Lachman <000.fbsd@quip.cz>
Cc:        freebsd-current@freebsd.org, Ivan Voras <ivoras@freebsd.org>, freebsd-geom@freebsd.org
Subject:   Re: RFC: Project geom-events
Message-ID:  <711721489.20111006175611@serebryakov.spb.ru>
In-Reply-To: <4E8DA627.60003@quip.cz>
References:  <1927112464.20111004220507@serebryakov.spb.ru> <4E8B7A27.5070908@quip.cz> <344794801.20111005101957@serebryakov.spb.ru> <4E8C1426.60107@quip.cz> <251861322.20111005125825@serebryakov.spb.ru> <4E8C6E85.90005@quip.cz> <CACdU%2Bf8mA1wLUnHVyrJwaf89ahf2oc_904=8mme7kkBLxLSCCQ@mail.gmail.com> <4E8CD662.90202@quip.cz> <j6k252$hpm$1@dough.gmane.org> <4E8DA627.60003@quip.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello, Miroslav.
You wrote 6 =D0=BE=D0=BA=D1=82=D1=8F=D0=B1=D1=80=D1=8F 2011 =D0=B3., 16:59:=
19:

> I am not a GEOM expert, but isn't it wrong concept, that glabel writes
> its metadata and publish original device size? If some GEOM write=20
> metadata at last sector (or first), then it should shrink the published
> size (or offset). Or is the problem at geom_part, that it is writing=20
> metadata past the advertised end of the device?
  Good point.

> e.g. If I have disk device with size of 100 sectors and glabel metadata
> is stored at the last sector, then glabel should shrink the advertised
> size to 99 sectors - then GPT secondary table will be at sector 99=20
> instead of 100.

> The current state is simply wrong, because user can do something what
> cannot work and is not documented anywhere.
  It is Ok in UNIX way, in general. You should be able to shoot your
 leg, it is good :)

  But if geom_label doesn't reduce its provider to count its own
 metadata, it looks like a bug!

--=20
// Black Lion AKA Lev Serebryakov <lev@FreeBSD.org>




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