[LU-4642] unify lu_object_{find,locate} interfaces to return "-ENOENT" for NULL case Created: 18/Feb/14 Updated: 05/Nov/14 |
|
| Status: | Open |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | nasf (Inactive) | Assignee: | Bob Glossman (Inactive) |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Severity: | 3 |
| Rank (Obsolete): | 12695 |
| Description |
|
Currently, lu_object_locate() will return NULL for the case of not found the required object (slice), but related lu_object_find_xxx() may return "-ENOENT" for that. Such inconsistent behaviour will confuse the callers. We prefer to make them all to return "-ENOENT" for the case of not found the object. |