[LU-7025] lfsck_layout_scan_stripes suspicious rc assignment Created: 20/Aug/15 Updated: 24/Aug/15 Resolved: 24/Aug/15 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.8.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Oleg Drokin | Assignee: | nasf (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Severity: | 3 |
| Rank (Obsolete): | 9223372036854775807 |
| Description |
|
We seem to be having this sort of code there: if (lso == NULL) { struct lu_attr *attr = &info->lti_la; rc = dt_attr_get(env, parent, attr); if (rc != 0) { rc = PTR_ERR(lso); goto next; } Now note that lso is already NULL - meaning we reset nonzero rc into zero in quite a roundabout way. |
| Comments |
| Comment by Gerrit Updater [ 20/Aug/15 ] |
|
Fan Yong (fan.yong@intel.com) uploaded a new patch: http://review.whamcloud.com/16042 |
| Comment by Gerrit Updater [ 24/Aug/15 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/16042/ |
| Comment by Joseph Gmitter (Inactive) [ 24/Aug/15 ] |
|
Patch has landed for 2.8. |