[LU-11311] LNet: cleanup error handling in liblnetconfig.c Created: 31/Aug/18 Updated: 21/Jan/22 |
|
| Status: | Open |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor |
| Reporter: | Amir Shehata (Inactive) | Assignee: | WC Triage |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Severity: | 3 |
| Rank (Obsolete): | 9223372036854775807 |
| Description |
|
Some error paths in the liblnetconfig.c code result in a 0 error code even though there was an actual error. That error gets added in the YAML error block and can be confusing to the user. We should look at all the calls to : cYAML_build_error(rc, seq_no, ADD_CMD, "peer_ni", err_str, err_rc); and make sure in the error case rc is being assigned properly. |