]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
loader.efi: efipart should be more careful about constructing block device lists
authortsoome <tsoome@FreeBSD.org>
Tue, 20 Aug 2019 19:31:11 +0000 (19:31 +0000)
committertsoome <tsoome@FreeBSD.org>
Tue, 20 Aug 2019 19:31:11 +0000 (19:31 +0000)
commit7d38e9ccad39afcc1b8757e053d43ff6e74b49fe
treec4bf46179e36210a96cc1324c5789c225fb32a6d
parentcb1c7a690d7f54f3db4c7e7b8ee7f40ebe428bdd
loader.efi: efipart should be more careful about constructing block device lists

The cd handles should be collected as list of partitions. Some systems also
provide base name for block device (like PciRoot(0x0)/Pci(0x5,0x0)), we need
to be careful about those.

To make out life a bit easier, we prepare not just an array of handles, but we
allocate pdinfo struct for each handle and devicepath, then we can simplify
our work to sort the devices.

Differential Revision: https://reviews.freebsd.org/D21187
stand/efi/libefi/efipart.c