From: Tom Rini Date: Thu, 24 Aug 2017 21:05:19 -0400 Subject: [U-Boot] [PATCH 4/4] part: efi: Disable overlap check In-Reply-To: <20170823140133.1506-4-maxime.ripard@free-electrons.com> References: <20170823140133.1506-1-maxime.ripard@free-electrons.com> <20170823140133.1506-4-maxime.ripard@free-electrons.com> Message-ID: <20170825010519.GR17193@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Aug 23, 2017 at 04:01:33PM +0200, Maxime Ripard wrote: > The current code checks that no partitions overlap with the GPT partition > table using the offset of the first LBA usable for that partition. > > This works fine, unless you have a partition entry that is further away > than it usually is and you want to create partitions in the gap between the > GPT header and the GPT partition entries, for example to reflash a > bootloader that needs to be set there. > > Rework the test to something a bit smarter that checks whether a partition > would overlap with either the GPT header or the partition entries, no > matter where it is on the disk. > > Partitions that do not have a start LBA specified will still start at the > first LBA usable set in the GPT header, to avoid weird behaviours. > > Signed-off-by: Maxime Ripard Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: