Details
-
Bug
-
Resolution: Fixed
-
Critical
-
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:
- cp /bin/ls test.bin
- ln test.bin test.bin.lnk
- cp test.bin.lnk test.bin.new
- mv test.bin.new test.bin
- lfs path2fid test.bin
[0x200000400:0x2:0x0] - lfs path2fid test.bin.lnk
[0x200000400:0x1:0x0] - lfs fid2path lustre 0x200000400:0x2:0x0
test.bin - lfs fid2path lustre 0x200000400:0x1:0x0
test.bin
test.bin.lnk - ls -i *
144115205255725058 test.bin 144115205255725057 test.bin.lnk
Both inodes have a link count=1.