[LU-14174] errors from llapi_mirror_find() are not checked correctly Created: 02/Dec/20 Updated: 08/Mar/22 Resolved: 27/Oct/21 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.15.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | John Hammond | Assignee: | Mikhail Pershin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Severity: | 3 |
| Rank (Obsolete): | 9223372036854775807 |
| Description |
|
llapi_mirror_find() has return type uint32_t but returns negated errnos in some cases. Callers check for errors by comparing the returned mirror id to 0. |
| Comments |
| Comment by Gerrit Updater [ 25/Feb/21 ] |
|
Mike Pershin (mpershin@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/41757 |
| Comment by Gerrit Updater [ 27/Oct/21 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/41757/ |
| Comment by Peter Jones [ 27/Oct/21 ] |
|
Landed for 2.15 |