[LU-4659] link EA inconsistencies Created: 21/Feb/14  Updated: 27/May/14  Resolved: 08/Apr/14

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.6.0, Lustre 2.4.2, Lustre 2.5.1
Fix Version/s: Lustre 2.6.0, Lustre 2.5.2

Type: Bug Priority: Critical
Reporter: Henri Doreau (Inactive) Assignee: Lai Siyao
Resolution: Fixed Votes: 0
Labels: mn4

Severity: 3
Rank (Obsolete): 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.



 Comments   
Comment by Peter Jones [ 22/Feb/14 ]

Lai

Could you please look into this one?

Thanks

Peter

Comment by Lai Siyao [ 24/Feb/14 ]

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

Comment by Lai Siyao [ 24/Feb/14 ]

patch is on http://review.whamcloud.com/#/c/9366/

Comment by Lai Siyao [ 04/Mar/14 ]

patch landed.

Comment by Peter Jones [ 20/Mar/14 ]

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

Comment by Lai Siyao [ 21/Mar/14 ]

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

Comment by Jodi Levi (Inactive) [ 08/Apr/14 ]

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

Comment by Aurelien Degremont (Inactive) [ 08/Apr/14 ]

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

Comment by Aurelien Degremont (Inactive) [ 28/Apr/14 ]

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?

Comment by Peter Jones [ 28/Apr/14 ]

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.

Comment by Bob Glossman (Inactive) [ 21/May/14 ]

backport to b2_5:
http://review.whamcloud.com/10409

Generated at Sat Feb 10 01:44:43 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.