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
Unknown Object (File)
Tue, Dec 3, 2:33 AM
Unknown Object (File)
Sun, Dec 1, 3:28 PM
Unknown Object (File)
Mon, Nov 25, 9:38 PM
Unknown Object (File)
Mon, Nov 25, 2:35 PM
Unknown Object (File)
Fri, Nov 22, 7:44 PM
Unknown Object (File)
Nov 22 2024, 10:31 AM
Unknown Object (File)
Nov 19 2024, 8:42 AM
Unknown Object (File)
Nov 5 2024, 10:37 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.