Re: RFC: Project geom-events

From: Lev Serebryakov <lev_at_FreeBSD.org>
Date: Thu, 6 Oct 2011 17:56:11 +0400
Hello, Miroslav.
You wrote 6 октября 2011 г., 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 
> 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 
> 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 
> 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!

-- 
// Black Lion AKA Lev Serebryakov <lev_at_FreeBSD.org>
Received on Thu Oct 06 2011 - 11:56:23 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:18 UTC