Details

    • Bug
    • Resolution: Fixed
    • Critical
    • Lustre 2.6.0, Lustre 2.5.2
    • Lustre 2.6.0, Lustre 2.4.2, Lustre 2.5.1
    • 3
    • 12750

    Description

      Chained link() and rename() leads to incoherent path/fid mappings.

      Here's a simple reproducer:

      1. cp /bin/ls test.bin
      2. ln test.bin test.bin.lnk
      3. cp test.bin.lnk test.bin.new
      4. mv test.bin.new test.bin
      5. lfs path2fid test.bin
        [0x200000400:0x2:0x0]
      6. lfs path2fid test.bin.lnk
        [0x200000400:0x1:0x0]
      7. lfs fid2path lustre 0x200000400:0x2:0x0
        test.bin
      8. lfs fid2path lustre 0x200000400:0x1:0x0
        test.bin
        test.bin.lnk
      9. ls -i *
        144115205255725058 test.bin 144115205255725057 test.bin.lnk

      Both inodes have a link count=1.

      Attachments

        Activity

          [LU-4659] link EA inconsistencies
          bogl Bob Glossman (Inactive) added a comment - backport to b2_5: http://review.whamcloud.com/10409
          pjones Peter Jones added a comment -

          I confirm that, while it is intended to land this patch ahead of the 2.5.2 release, it has not yet been landed to b2_5.

          pjones Peter Jones added a comment - I confirm that, while it is intended to land this patch ahead of the 2.5.2 release, it has not yet been landed to b2_5.

          I'm seeing this ticket flagged as Fixed in 2.5.2 but I cannot find any patch in b2_5 related to this ticket, and any Gerrit for 2.5 is linked here.

          Could you confirm this information?

          adegremont Aurelien Degremont (Inactive) added a comment - I'm seeing this ticket flagged as Fixed in 2.5.2 but I cannot find any patch in b2_5 related to this ticket, and any Gerrit for 2.5 is linked here. Could you confirm this information?

          I'm not this ticket should be closed. I think this should go to 2.5.2 too.

          adegremont Aurelien Degremont (Inactive) added a comment - I'm not this ticket should be closed. I think this should go to 2.5.2 too.

          Patch landed to Master. Please reopen ticket if more work is needed.

          jlevi Jodi Levi (Inactive) added a comment - Patch landed to Master. Please reopen ticket if more work is needed.
          laisiyao Lai Siyao added a comment -

          patch is updated here: http://review.whamcloud.com/9745

          laisiyao Lai Siyao added a comment - patch is updated here: http://review.whamcloud.com/9745
          pjones Peter Jones added a comment -

          Patch was reverted due to a build failure. Could you please repush this patch? Thanks!

          pjones Peter Jones added a comment - Patch was reverted due to a build failure. Could you please repush this patch? Thanks!
          laisiyao Lai Siyao added a comment -

          patch landed.

          laisiyao Lai Siyao added a comment - patch landed.
          laisiyao Lai Siyao added a comment - patch is on http://review.whamcloud.com/#/c/9366/
          laisiyao Lai Siyao added a comment -

          The code shows mdd_rename() forgets updating target linkea, I'll commit a patch soon.

          laisiyao Lai Siyao added a comment - The code shows mdd_rename() forgets updating target linkea, I'll commit a patch soon.

          People

            laisiyao Lai Siyao
            hdoreau Henri Doreau (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: