LLAPI_PATH2FID(3)

πŸ“¦ version 2.17.58, in ubuntu stonking

✨ LLAPI_PATH2FID β€” the llapi_path2fid(3) page, bestie edition ✨

okay so. you're in the Lustre manual, section 3 of the library functions, and this is the page for llapi_path2fid β€” aka the little function that turns a path name into a File Identifier. it's giving "glow-up for a string" πŸ’…


🌸 NAME 🌸

llapi_path2fid β€” translate a path name to a File Identifier


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <lustre/lustreapi.h>

int llapi_path2fid(const char *path, struct lu_fid *fid);

πŸ’– DESCRIPTION πŸ’–

so like, llapi_path2fid() takes the Lustre file identifier (FID, the moment ✨) for whatever file or directory is named by path, and stores it right into fid. that's it. that's the whole vibe.

and then?? once you have that fid, you can pass it along to all the other llapi_ functions that expect the struct lu_fid data type. it's basically the friendship bracelet you trade so the other functions will talk to you 🫢


πŸ”₯ RETURN VALUES πŸ”₯

returns 0 on success, or a negative errno value on failure. no cap.


πŸ’€ ERRORS πŸ’€

  • -EINVAL β€” an invalid argument was specified. somebody passed something weird, bestie.
  • -ENOTTY β€” path does not reside on a Lustre filesystem. wrong neighborhood, hon 😭
  • -ENOENT β€” path does not exist. it's not there. it ghosted you πŸ‘»

πŸ‘‘ AVAILABILITY πŸ‘‘

llapi_path2fid() is part of the lustre(7) user application interface library, and it's been here since release 2.4.0. og status, fr fr.


🌈 SEE ALSO 🌈


and that's the page, periodt πŸ’… this icon of a manpage lives under the Lustre User API banner and was last touched on 2024-08-28 β€” go read the whole set, ily, bye πŸŽ€βœ¨

πŸ“¦ where this page comes from