Page MenuHomeFreeBSD

libsa: Add a generic URI-syntax devspec parser
ClosedPublic

Authored by imp on Fri, Sep 4, 7:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 25, 5:44 PM
Unknown Object (File)
Mon, Sep 21, 11:15 PM
Unknown Object (File)
Mon, Sep 21, 12:34 PM
Unknown Object (File)
Tue, Sep 15, 5:46 PM
Unknown Object (File)
Tue, Sep 15, 5:44 AM
Unknown Object (File)
Mon, Sep 14, 2:30 PM
Unknown Object (File)
Sun, Sep 13, 10:53 PM
Unknown Object (File)
Sun, Sep 13, 4:31 PM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable