[RFC] Remove requirement of alignment to track from MBR scheme
Andrey V. Elsukov
bu7cher at yandex.ru
Mon May 23 17:59:33 UTC 2011
On 23.05.2011 21:38, Warner Losh wrote:
> I'm all for carefully moving forward. There were parts of the patch
> that seemed to be over-reaching.
>
> Personally, I'd just do something like the following since it
> reflects what others do and implements the de-facto meaning of the
> MBR:
>
> Index: sys/geom/part/g_part_mbr.c
> ===================================================================
> --- sys/geom/part/g_part_mbr.c (revision 222183) +++
> sys/geom/part/g_part_mbr.c (working copy) @@ -473,7 +473,7 @@
>
> basetable->gpt_entries = NDOSPART; basetable->gpt_first =
> basetable->gpt_sectors; - basetable->gpt_last = msize - (msize %
> basetable->gpt_sectors) - 1; + basetable->gpt_last = msize - 1;
There was report with different problem, the user created a partition
that is aligned to 4KB sector size and it starts from the inside of
first track, i.e. start offset < 63.
And as he said, he did use sysinstall(8) for partitioning.
--
WBR, Andrey V. Elsukov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20110523/c9919aa2/signature.pgp
More information about the freebsd-geom
mailing list