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

link EA inconsistencies

    XMLWordPrintable

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

          People

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

            Dates

              Created:
              Updated:
              Resolved: