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

Using wrong attr inside mdd_is_subdir

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Minor
    • None
    • None
    • None
    • 3
    • 13555

    Description

      in mdd_is_subdir, it keeps using the same attr for all parents lookup,

      static int mdd_is_parent(const struct lu_env *env,
                              struct mdd_device *mdd,
                              struct mdd_object *p1,
                              const struct lu_attr *attr,
                              const struct lu_fid *lf,
                              struct lu_fid *pf)
      {
      ......
      
      
              for(;;) {
                      /* this is done recursively, bypass capa for each obj */
                      mdd_set_capainfo(env, 4, p1, BYPASS_CAPA);
                      rc = mdd_parent_fid(env, p1, attr, pfid);
                      .....
      
                      p1 = parent;  <-----  p1 is changed to its parent, we should retrieve new attr here.
                       
              }
      
      }
      
      

      Attachments

        Issue Links

          Activity

            People

              wc-triage WC Triage
              di.wang Di Wang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: