Page MenuHomeFreeBSD

ifconfig: abort if loading a module fails other than for ENOENT
ClosedPublic

Authored by asomers on Dec 25 2022, 6:09 PM.
Tags
None
Referenced Files
F172343640: D37873.diff
Thu, Sep 17, 8:53 PM
Unknown Object (File)
Sun, Sep 6, 2:41 PM
Unknown Object (File)
Sun, Sep 6, 2:01 PM
Unknown Object (File)
Sat, Sep 5, 11:32 AM
Unknown Object (File)
Thu, Sep 3, 5:42 PM
Unknown Object (File)
Thu, Sep 3, 1:40 PM
Unknown Object (File)
Tue, Sep 1, 4:26 PM
Unknown Object (File)
Tue, Sep 1, 1:26 PM
Subscribers

Details

Summary

If "ifconfig create" tries to load a kernel module, and the module
exists but can't be loaded, fail the command with a useful error
message. This is helpful, for example, when trying to create a cloned
interface in a vnet jail. But ignore ENOENT, because sometimes ifconfig
can't correctly guess the name of the required kernel module.

MFC after: 2 weeks

Test Plan

Manually tested

Diff Detail

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