mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
Add parse_uri(), a helper for devices whose devspec can take a "[N]://host[:port][/path]" form in addition to the traditional "N:path" form. It returns EINVAL when devspec doesn't match that pattern, so a caller's own dv_parsedev can fall back to the traditional form. Un-static default_parsedev() so it can serve as that fallback. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D59422