OS Manuals

lfs-fid2path(1)

lfs-fid2path - print the pathname(s) for a file identifier

LFS-FID2PATH(1) Lustre User Utilities LFS-FID2PATH(1)

lfs-fid2path - print the pathname(s) for a file identifier

lfs fid2path [OPTION]... FSNAME|MOUNT_POINT FID...

lfs fid2path maps a numeric Lustre File IDentifier (FID) to one or more pathnames that have hard links to that file. This allows resolving filenames for FIDs used in console error messages, and resolving all of the pathnames for a file that has multiple hard links. Pathnames are resolved relative to the MOUNT_POINT specified, or relative to the filesystem mount point if FSNAME is provided.

-0, --print0
Print the full pathname, followed by a NUL character instead of the newline character.
Print the FID with the path.
Print the current link number with each pathname or parent directory.
If a file has multiple hard links, then print only the specified LINK_NUM, starting at link 0. If multiple FIDs are given, but only one pathname is needed for each file, use --link=0.
Print only the filename instead of whole pathname

# lfs fid2path /mnt/testfs [0x200000403:0x11f:0x0]
/mnt/testfs/etc/hosts
# lfs fid2path -0 /mnt/lustre 0x200000401:0x6:0x0 | xargs --null
/mnt/lustre/Test_
file /mnt/lustre/Link_
file
# lfs fid2path -n /mnt/testfs [0x200000403:0x11f:0x0]
hosts

lfs fid2path is part of the lustre(7) filesystem package since release 2.0.0

lfs(1), lfs-getstripe(1), lfs-path2fid(1), llapi_fid2path(3), lustre(7)

2024-08-15 Lustre

lustre 2.17.59-r1 · enterprise-packages · ingested 2026-10-02