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

llapi_semantic_traverse() and lfs find skip any child directory named .lustre

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.11.0
    • Lustre 2.7.0
    • 3
    • 16633

    Description

      From llapi_semantic_traverse():

              while ((dent = readdir64(d)) != NULL) {
                      int rc;
      
                      param->have_fileinfo = 0;
      
                      if (!strcmp(dent->d_name, ".") || !strcmp(dent->d_name, ".."))
                              continue;
      
                      /* Don't traverse .lustre directory */
                      if (!(strcmp(dent->d_name, dot_lustre_name)))
                              continue;
      

      Attachments

        Issue Links

          Activity

            [LU-5955] llapi_semantic_traverse() and lfs find skip any child directory named .lustre
            pjones Peter Jones added a comment -

            Landed for 2.11

            pjones Peter Jones added a comment - Landed for 2.11

            Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/30463/
            Subject: LU-5955 utils: lfs shouldn't skip .lustre directory
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: e6a80a02e285c289f823f16cbdf8b46c1002b9f9

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/30463/ Subject: LU-5955 utils: lfs shouldn't skip .lustre directory Project: fs/lustre-release Branch: master Current Patch Set: Commit: e6a80a02e285c289f823f16cbdf8b46c1002b9f9
            adilger Andreas Dilger added a comment - - edited

            Andreas Dilger (andreas.dilger@intel.com) uploaded a new patch: https://review.whamcloud.com/30463
            Subject: LU-5955 utils: lfs shouldn't skip .lustre directory
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: b5057af794b8cc991b344fe6759a53b10e2010b8

            adilger Andreas Dilger added a comment - - edited Andreas Dilger (andreas.dilger@intel.com) uploaded a new patch: https://review.whamcloud.com/30463 Subject: LU-5955 utils: lfs shouldn't skip .lustre directory Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: b5057af794b8cc991b344fe6759a53b10e2010b8

            The http://review.whamcloud.com/11186 patch has been landed as of 2.5.3-84-g2976f91 so there is no longer a need for this workaround on the client.

            adilger Andreas Dilger added a comment - The http://review.whamcloud.com/11186 patch has been landed as of 2.5.3-84-g2976f91 so there is no longer a need for this workaround on the client.

            The patch http://review.whamcloud.com/11186 "LU-5044 mdd: do not return .lustre from readdir" should be backported to b2_5 so that we can remove this hack from the client.

            adilger Andreas Dilger added a comment - The patch http://review.whamcloud.com/11186 " LU-5044 mdd: do not return .lustre from readdir" should be backported to b2_5 so that we can remove this hack from the client.

            People

              adilger Andreas Dilger
              jhammond John Hammond
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: