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

duplicate directory entries from readdir()

    XMLWordPrintable

Details

    • 3
    • 7764

    Description

      lmv_readpage() fails to overwrite the ldp_hash_end and ldp_flags of the first lu_dirpage in a CFS_PAGE with the values from the last lu_dirpage. This causes duplicate directory entries to be returned from readdir() for sufficiently large directories. This is only an issue on platforms where CFS_PAGE_SIZE > LU_PAGE_SIZE, i.e. PPC.

      The regression was introduced in patch http://review.whamcloud.com/#change,5011, with the apparently accidental removal of these lines from lmv_readpage():

          -                        hash_end = dp->ldp_hash_end;
          -                        flags = dp->ldp_flags;
      

      Attachments

        Activity

          People

            emoly.liu Emoly Liu
            nedbass Ned Bass (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: