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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • Lustre 2.8.0
    • Lustre 2.8.0
    • None
    • 3
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: