LFS-PATH2FID(1)

πŸ“¦ version 2.17.58, in ubuntu stonking

✨ lfs-path2fid(1) ✨

okay bestie so this is a page from the Lustre User Utilities manual πŸ’… like the actual lfs-path2fid(1) one, and I'm gonna walk you through it like we're texting at 2am 🫢


🌸 NAME 🌸

lfs-path2fid β€” print the file identifier for a given pathname

like… you give it a path, it gives you a FID. it's giving matchmaker but for files πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

lfs path2fid DIRECTORY|FILE...

notice the ... bestie β€” you can throw multiple paths at it and it'll handle each one, no cap πŸ‘‘


πŸ’œ DESCRIPTION πŸ’œ

lfs path2fid prints the File Identifier for the FILE or DIRECTORY you specified. that's the whole job. she's focused, she's efficient, she ate πŸ“

and like, the FID is unique for each file in the filesystem</>, and β€” this is the iconic part β€” it is never reused for other files if the file is deleted. so once a FID is taken, that slot is retired forever. no recycling era, only main character energy πŸ‘‘

you can also grab the FID for regular files via lfs getstripe -F if that's more your vibe ✨


πŸŽ€ OPTIONS πŸŽ€

  • --parents β€” Print out the parent FID and name(s) of the given entries. If an entry has multiple links, these are displayed on a single line, tab-separated. (yes, multiple links, one line, tabs doing the separating β€” organized queen behavior fr fr πŸ’…)

🌈 EXAMPLES 🌈

look at her go ✨

$ lfs path2fid /mnt/lustre/etc/hosts
[0x200000403:0x11f:0x0]

and with the --parents glow-up:

$ lfs path2fid --parents /mnt/lustre/etc/hosts
[0x200000403:0x101:0x0]/hosts

see how the parent FID showed up in front and the name tacked on after the slash?? obsessed 😭🫢


⭐ AVAILABILITY ⭐

lfs path2fid is part of the lustre(7) filesystem package since release 1.7.0. she's been around, she's a legacy icon πŸ’œ


πŸ‘‘ SEE ALSO πŸ‘‘


okay that's the whole page, you're welcome 🧚 this dropped from the Lustre crew on 2025-01-24 β€” go forth and path2fid something, bestie, and remember: the FID never gets reused, and neither should you ever accept mid documentation πŸ’–βœ¨

πŸ“¦ where this page comes from