Date: Wed, 1 Jul 2009 00:08:25 +0200 From: Ivan Voras <ivoras@freebsd.org> To: rick-freebsd2008@kiwi-computer.com Cc: Marcel Moolenaar <xcllnt@mac.com>, freebsd-geom@freebsd.org Subject: Re: gmirror gm0 destroyed on shutdown; GPT corrupt Message-ID: <9bbcef730906301508l6f2ae344tff8f7495e870049e@mail.gmail.com> In-Reply-To: <20090630215345.GC33849@keira.kiwi-computer.com> References: <20090625110253.GA31443@mech-cluster238.men.bris.ac.uk> <10FCC74D-6D46-4112-AD89-BBB4C5933957@mac.com> <h24v15$70v$1@ger.gmane.org> <2FFFB36F-EFA3-4D92-98A3-692BA2D6F63E@mac.com> <20090629210003.GA24038@keira.kiwi-computer.com> <704EE47D-F0C4-4C63-AA3C-3ADF92CC8379@mac.com> <20090630215345.GC33849@keira.kiwi-computer.com>
next in thread | previous in thread | raw e-mail | index | archive | help
2009/6/30 Rick C. Petty <rick-freebsd2008@kiwi-computer.com>: > On Tue, Jun 30, 2009 at 02:37:55PM -0700, Marcel Moolenaar wrote: > Both bar and baz should validate their metadata and it should be pretty > apparent that one of them has a smaller size. =C2=A0If the one that is sm= aller > fits perfectly into the one that is bigger, the taste should pass to the > latter first. This is how it's currently done with "native" GEOM classes like gmirror - if gmirror is put where it and something else can taste the metadata, gmirror will decide by checking the size - usually +/- 1 sector. But we can't embed this logic into "foreign" classes like GPT. GTP check the first sector (and the last sector for backup), while gmirror checks the first sector, and GPT metadata (AFAIK) doesn't contain media size.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9bbcef730906301508l6f2ae344tff8f7495e870049e>