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

lov_getstripe() makes incorrect assumptions about layout of lov_mds_md_v1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.5.0
    • Lustre 2.4.0
    • 3
    • 7705

    Description

      The rarely tested lov_getstripe() assumes that

      (char*)(&lmmk->lmm_stripe_count) + sizeof(lmmk->lmm_stripe_count)
      

      is the address of lmm_objects when lmmk is cast to lov_mds_md_v1. (This was written before lmm_layout_gen was introduced. But this not the way to do that in any case.)

      Attachments

        Activity

          People

            wc-triage WC Triage
            jhammond John Hammond
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: