[LU-13732] "lfs fid2path" can't match the rootpath correctly Created: 01/Jul/20  Updated: 21/Dec/22  Resolved: 20/Jul/20

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.14.0

Type: Bug Priority: Minor
Reporter: Emoly Liu Assignee: Emoly Liu
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

For example,

[root@centos7-3 tests]# cp /etc/passwd /mnt/lustre/
[root@centos7-3 tests]# lfs path2fid /mnt/lustre/passwd 
[0x200000401:0x3:0x0]
[root@centos7-3 tests]# lfs fid2path /mnt/lustre 0x200000401:0x3:0x0 
/mnt/lustre/passwd
[root@centos7-3 tests]# lfs fid2path /mnt/lustre_sdfsf 0x200000401:0x3:0x0
/mnt/lustre_sdfsf/passwd


 Comments   
Comment by Gerrit Updater [ 01/Jul/20 ]

Emoly Liu (emoly@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/39225
Subject: LU-13732 lfs: fid2path should match the root path correctly
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 2f1bc2ce68b5fb471eca72f699f31043357be71f

Comment by Gerrit Updater [ 20/Jul/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/39225/
Subject: LU-13732 lfs: fid2path should match the root path correctly
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 08892438473f3188de3dc7f76b0ce433eaef4367

Comment by Peter Jones [ 20/Jul/20 ]

Landed for 2.14

Comment by Gerrit Updater [ 21/Dec/22 ]

"Etienne AUJAMES <eaujames@ddn.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/49481
Subject: LU-13732 lfs: fid2path should match the root path correctly
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: a04c47fd89c826d73502b9de564cabcc4ff08ea0

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