Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-6834

idx_array is overwritten in lod_prep_md_striped_create()

    XMLWordPrintable

Details

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

      Attachments

        Issue Links

          Activity

            People

              di.wang Di Wang
              di.wang Di Wang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: