New g_part class

Ivan Voras ivoras at fer.hr
Wed Feb 7 21:49:50 UTC 2007


Simon L. Nielsen wrote:

> IE. the gmirror device is one sector smaller than the disk device.

That's not the problem - the problem is: who handles that sector? For
example, a simple partition layout might be:

ad0 - first drive of size X
ad0s1 - of size Y
ad1 - second drive of size X
ad1s1 - of size Y

When creating a mirror of ad0s1 and ad1s1, gmirror writes its metadata
on the last sector of both partitions, and creates the mirror device one
sector smaller than Y. It can't write this sector if either of the
partitions are in use (e.g. mounted).

Actually, while writing it all down like this, it occured to me this
can't be elegantly solved on the partition level, so sorry for the noise :)



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20070207/1c93e44b/signature.pgp


More information about the freebsd-geom mailing list