Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
Lustre 2.8.0
-
None
-
3
-
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.