Page MenuHomeFreeBSD

Add function to force an nvlist into the error state
ClosedPublic

Authored by rstone on Feb 17 2015, 5:44 PM.
Tags
None
Referenced Files
F55864025: D1878.diff
Sat, Feb 4, 8:03 PM
Unknown Object (File)
Fri, Jan 13, 7:39 PM
Unknown Object (File)
Sun, Jan 8, 2:23 PM
Unknown Object (File)
Sat, Jan 7, 8:34 AM
Unknown Object (File)
Jan 4 2023, 5:50 AM
Unknown Object (File)
Dec 21 2022, 9:03 PM
Unknown Object (File)
Apr 22 2017, 1:29 PM
Unknown Object (File)
Apr 22 2017, 4:52 AM

Details

Summary

Add an nvlist_set_error() function that can be used to force an
nvlist into the error state. This is useful both for writing
tests and for writing APIs that use nvlists internally.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

rstone retitled this revision from to Add function to force an nvlist into the error state.
rstone edited the test plan for this revision. (Show Details)
rstone added a reviewer: jfv.
rstone updated this object.
rstone added subscribers: pjd, Unknown Object (MLST).
jfv edited edge metadata.
This revision is now accepted and ready to land.Feb 18 2015, 10:25 PM

Other that the minor nit above, it looks good.

lib/libnv/nvlist.c
144

I'd assert that error is != 0.