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

Do not do subdir check if source and target are in the same directory

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: Lustre 2.8.0
    • Fix Version/s: Lustre 2.8.0
    • Labels:
      None
    • Severity:
      3
    • Rank (Obsolete):
      9223372036854775807

      Description

      In mdt_reint_rename_internal(), we do not need do is_subdir check if source and target are in the same directory.

           
             /* Check if @mtgtdir is subdir of @mold, before locking child
               * to avoid reverse locking. */
              rc = mdt_is_subdir(info, mtgtdir, old_fid);  <--- no need check if mtgtdir == msrcdir
              if (rc)
                      GOTO(out_put_old, rc);
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                di.wang Di Wang
                Reporter:
                di.wang Di Wang
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: