[LU-6834] idx_array is overwritten in lod_prep_md_striped_create() Created: 10/Jul/15 Updated: 01/Jul/16 Resolved: 21/Jul/15 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.8.0 |
| Fix Version/s: | Lustre 2.8.0 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Di Wang | Assignee: | Di Wang |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Severity: | 3 | ||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||
| Description |
|
The idx_array is over_written in lod_prep_md_striped_create(), here is the fix @@ -1895,7 +1895,7 @@ static int lod_prep_md_striped_create(const struct lu_env *env,
idx, i, PFID(&fid));
idx_array[i] = idx;
/* Set the start index for next stripe allocation */
- if (i < stripe_count)
+ if (i < stripe_count - 1)
idx_array[i + 1] = (idx + 1) %
(lod->lod_remote_mdt_count + 1);
/* tgt_dt and fid must be ready after search avaible OSP
Otherwise idx_array will be overwritten. |
| Comments |
| Comment by Gerrit Updater [ 11/Jul/15 ] |
|
wangdi (di.wang@intel.com) uploaded a new patch: http://review.whamcloud.com/15572 |
| Comment by Gerrit Updater [ 21/Jul/15 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/15572/ |
| Comment by Peter Jones [ 21/Jul/15 ] |
|
Landed for 2.8 |