]> 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 16:36:03 +0000 (09:36 -0700)
committerWarner Losh <imp@FreeBSD.org>
Sun, 19 Feb 2023 00:46:57 +0000 (17:46 -0700)
commitbae5c36257ec5289631abf49b33a4041acc84e3c
tree98debf02fe69b58f16932346c78c5ace96baf25a
parent82c0aea8f3c270c6d20b093cf711d4bb1472237c
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)
lib/libefivar/efivar-dp-xlate.c