]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
efivar: support device paths as well as mounted paths in path_to_dp
authorWarner Losh <imp@FreeBSD.org>
Thu, 16 Feb 2023 15:53:35 +0000 (08:53 -0700)
committerWarner Losh <imp@FreeBSD.org>
Thu, 16 Feb 2023 15:54:39 +0000 (08:54 -0700)
commit57d5ca4eeba6192e91044aad86fca4429966cfac
tree239f300a3290369d34bcf09c3416a770a0611366
parent49fd6affdbfe6af53f119ebb27ff5e5e292e1f67
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
lib/libefivar/efivar-dp-xlate.c