HomeFreeBSD

efivar: support device paths as well as mounted paths in path_to_dp

Description

efivar: support device paths as well as mounted paths in path_to_dp

In path_to_dp, allow passing in either the actual device path "eg
/dev/foo/bar" or the path where the device is mounted (say
/mnt/baz/bing). In the former case we'll assume the path within the
device is nothing (the relpath). In the latter, we'll take from the
mount point on down as the relpath.

Sponsored by: Netflix
Reviewed by: corvink, manu, asomers
Differential Revision: https://reviews.freebsd.org/D38616

(cherry picked from commit 57d5ca4eeba6192e91044aad86fca4429966cfac)

Details

Provenance
impAuthored on Feb 16 2023, 4:36 PM
Reviewer
corvink
Differential Revision
D38616: efivar: support device paths as well as mounted paths in path_to_dp
Parents
rG82c0aea8f3c2: efivar: Allow NULL paths in build_dp
Branches
Unknown
Tags
Unknown