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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • Lustre 2.8.0
    • Lustre 2.8.0
    • None
    • 3
    • 9223372036854775807

      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);
      

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

              Created:
              Updated:
              Resolved: