From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 3 Oct 2016 09:36:54 -0400 Subject: [U-Boot] [U-Boot, v2, 1/4] disk: part: implement generic function part_get_info_by_name() In-Reply-To: <1473409638-19701-2-git-send-email-brain@jikos.cz> References: <1473409638-19701-2-git-send-email-brain@jikos.cz> Message-ID: <20161003133654.GD4884@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 Fri, Sep 09, 2016 at 10:27:15AM +0200, Petr Kulhavy wrote: > So far partition search by name has been supported only on the EFI partition > table. This patch extends the search to all partition tables. > > Rename part_get_info_efi_by_name() to part_get_info_by_name(), move it from > part_efi.c into part.c and make it a generic function which traverses all part > drivers and searches all partitions (in the order given by the linked list). > > For this a new variable struct part_driver.max_entries is added, which limits > the number of partitions searched. For EFI this was GPT_ENTRY_NUMBERS. > Similarly the limit is defined for DOS, ISO, MAC and AMIGA partition tables. > > Signed-off-by: Petr Kulhavy > Reviewed-by: Tom Rini > Acked-by: Steve Rae > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: