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

duplicate directory entries from readdir()

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Lustre 2.4.0
    • Fix Version/s: Lustre 2.4.0, Lustre 2.5.0
    • Labels:
    • Severity:
      3
    • Rank (Obsolete):
      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

            • Assignee:
              emoly.liu Emoly Liu
              Reporter:
              nedbass Ned Bass
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: