Page MenuHomeFreeBSD

libsa: Add a generic URI-syntax devspec parser
Needs ReviewPublic

Authored by imp on Fri, Sep 4, 7:08 PM.
Tags
None
Referenced Files
F171119240: D59422.id185866.diff
Tue, Sep 8, 7:59 PM
F171100070: D59422.id185866.diff
Tue, Sep 8, 5:04 PM
F171098750: D59422.id185866.diff
Tue, Sep 8, 4:54 PM
F171083263: D59422.id185866.diff
Tue, Sep 8, 2:38 PM
F171073396: D59422.id185887.diff
Tue, Sep 8, 1:19 PM
F171070815: D59422.id.diff
Tue, Sep 8, 12:58 PM
F171069087: D59422.id.diff
Tue, Sep 8, 12:43 PM
F171058260: D59422.id.diff
Tue, Sep 8, 11:10 AM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 76534
Build 73417: arc lint + arc unit