Date: Wed, 01 Jun 2011 11:46:22 +0400 From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: freebsd-geom@FreeBSD.org Cc: Konstantin Belousov <kib@FreeBSD.org>, Andriy Gapon <avg@fFreeBSD.org>, Marcel Moolenaar <marcel@FreeBSD.org>, Warner Losh <imp@FreeBSD.org> Subject: Re: [RFC] Remove requirement of alignment to track from MBR scheme Message-ID: <4DE5EE4E.4080002@FreeBSD.org> In-Reply-To: <4DDA2F0B.2040203@yandex.ru> References: <4DDA2F0B.2040203@yandex.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD4D6421508DC8C67C2E124EA Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable On 23.05.2011 13:55, Andrey V. Elsukov wrote: > Since after r221788 many people report about lost of access to their > MBR partitions, i prepared new patch: > =09 > http://people.freebsd.org/~ae/mbr_geometry.diff >=20 > It removes from GEOM_PART_MBR constraints to alignment to track. > Now it is possible to create MBR partitions with exactly specified > start offset and size, and they will not be recalculated by kernel. >=20 > Also the patch adds new option "-g" to the gpart(8) utility. This > option can be specified for "add" and "resize" subcommands. > gpart(8) uses information about provider's "geometry" and does > partition alignment how it did before for MBR. >=20 > With these changes we give to users the choice how align their > partitions and also we still able to use some "broken" partition > tables. For a summary: 1. I left the code of auto-align untouched, MBR still aligns new partitions. It seems for the consensus it is better keep it for 9.0-RELEA= SE. The "-g" option seems useless until this behavior will not be changed, so i did not add it. 2. The probe routine now does not truncate available disk space to the track boundary. Also new partition tables will not do that. 3. For the MBR scheme was added new checking and if partition starts from within the first track, its space will not be reserved as before. It seems these changes should resolve most of false positives for the integrity checks. --=20 WBR, Andrey V. Elsukov --------------enigD4D6421508DC8C67C2E124EA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) iQEcBAEBAgAGBQJN5e5RAAoJEAHF6gQQyKF6sdoH/2ksBFI/QwMYGn4MZcfHCKH9 xQUFve8g5USNHehHz23rsRAOjoPbBGFG7r83DI7w0tFb026NBK83dxqkMiLhcc4r X5AaSTcWNO/vhCDb6RW4Db1uaPep1c4bYWrRRNP4GNhqJkyhc8aqaGX1/W+KU+ad GdJ2jbaeIB3IcXZ2Y5f3HSOtSN3MNsn355/QREVAOu4fmcFzXltCKGxVNqfB7ejf oByHcn4u3PDrE6ERJ7BLXDM4DHXC35IOCwOXGnGuc0v43sLsUM03xnrkTzf5vyaB yOsNQeK3MqBjiNTSU5Ztzcq/Psq24Gy/0LF2/86z3QZOeujw8gMeVS43VIZSaHQ= =FrBQ -----END PGP SIGNATURE----- --------------enigD4D6421508DC8C67C2E124EA--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DE5EE4E.4080002>