]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Implement efiblk_get_pdinfo_by_device_path
authorWarner Losh <imp@FreeBSD.org>
Mon, 23 Jul 2018 20:36:54 +0000 (20:36 +0000)
committerWarner Losh <imp@FreeBSD.org>
Mon, 23 Jul 2018 20:36:54 +0000 (20:36 +0000)
commit00a47597a3eed2af1935be4f7cd7f71ef56aed50
tree2cad0a54f56a5220b6321c14f980d4ecd12acf70
parentc6c2a73c0c8c11be1e8b96cbbc57e7bf389cb3e2
Implement efiblk_get_pdinfo_by_device_path

Lookup a block device by it's device path. We use a 'loose' lookup
whereby we scan forward to the first Media Path portion of the device
path, then look at all our handles for one whose first Media Path
matches. This will also work if the device path pointed to has a
following file path (or paths) as that's ignored. It assumes that
there's only one media path node that describes the entire device,
which is true as of the latest UEFI spec (2.7 Errata A) as far as I've
been able to determine.

Sponsored by: Netflix
stand/efi/include/efilib.h
stand/efi/libefi/efipart.c