Page MenuHomeFreeBSD

ctl: add a new error type to distinguish EINVAL vs. EEXIST
Needs ReviewPublic

Authored by kevans on Tue, Apr 21, 4:41 AM.
Tags
None
Referenced Files
F154990037: D56540.id.diff
Thu, Apr 30, 12:50 PM
Unknown Object (File)
Wed, Apr 29, 5:59 PM
Unknown Object (File)
Wed, Apr 29, 1:00 PM
Unknown Object (File)
Wed, Apr 29, 12:19 AM
Unknown Object (File)
Mon, Apr 27, 7:37 AM
Unknown Object (File)
Sat, Apr 25, 6:06 AM
Unknown Object (File)
Fri, Apr 24, 5:49 AM
Subscribers

Details

Reviewers
asomers
jhb
Group Reviewers
cam
Summary

For port creation requests, CTL_LUN_ERROR will almost always effectively
be EINVAL, with one exception: attempting to add a port that already
exists.

Add a new error type to distinguish between the two, which maintains
the same semantics (setting the error string) for applications that
don't actually care about the differnce between the error types.

This will be used to surface an EEXIST in ctld so that we can proceed
with updating the port.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 72389
Build 69272: arc lint + arc unit