Page MenuHomeFreeBSD

loader: add an open_ondev variant of open
AcceptedPublic

Authored by kevans on Apr 15 2022, 4:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 13, 6:00 PM
Unknown Object (File)
Mon, Sep 29, 7:02 AM
Unknown Object (File)
Sun, Sep 28, 11:17 AM
Unknown Object (File)
Sun, Sep 28, 6:14 AM
Unknown Object (File)
Fri, Sep 26, 4:17 PM
Unknown Object (File)
Aug 19 2025, 12:15 PM
Unknown Object (File)
Aug 14 2025, 10:42 PM
Unknown Object (File)
Aug 4 2025, 10:34 PM
Subscribers

Details

Reviewers
imp
tsoome
manu
Summary

This lets us specify a device for the open(2) to act on, rather than
requiring it to be specified as part of the filename. This will be
used in gzipfs to open the gzipped file from the same device rather than
from currdev.

The alternative is to expose each loader's *_fmtdev() function as a
common symbol that libsa can assume the existence of, then bake the
result into the open() in gzipfs. That works, but it's decidedly
error prone compared to just copying over the file's devdesc and slicing
off a copy of that.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 45185
Build 42073: arc lint + arc unit