LLAPI_PARAM_GET_PATHS(3)

πŸ“¦ version 2.17.58, in ubuntu stonking

πŸ’– LLAPI_PARAM_GET_PATHS β€” bestie edition πŸ’–

okay so this is a page from the Lustre Library Function manual (section 3, the library-call girlies πŸ’…), and it's literally just here to help you find your parameter files. no cap.


✨ NAME ✨

llapi_param_get_paths β€” get a list of Lustre parameter file paths that match the given pattern πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <lustre/lustreapi.h>

int llapi_param_get_paths(const char *pattern, glob_t *paths);

🌸 DESCRIPTION 🌸

so the way that llapi_param_get_paths() works is: it goes rummaging through the locations in the filesystem that expose Lustre parameters πŸ‘€ β€” like, it knows where the vibes live.

every single file name that matches pattern and is sitting in the correct locations in the file system gets returned to you. both conditions, bestie. it's giving "right name, right place, or you're not invited to the party" πŸ’…βœ¨


πŸ”₯ RETURN VALUES πŸ”₯

  • 0 β€” slay, it worked. success, with the parameter paths stored in paths 🫢
  • -ve β€” not slay. an error code on failure, and it sets errno appropriately so you can go find out what went wrong 😭

πŸ‘‘ AVAILABILITY πŸ‘‘

llapi_param_get_paths() is part of the lustre(7) user application interface library β€” and it's been iconic in there since release 2.14.0 ⭐


🌈 SEE ALSO 🌈


πŸ’€ reminder: this call finds paths, it doesn't read the values for you. for that, go see llapi_param_get_value(3). iykyk 🧚

and that's the whole page, periodt πŸ’œ β€” brought to you by the Lustre User API, dated 2024-08-27. mwah, go read your parameter files responsibly πŸŽ€βœ¨

πŸ“¦ where this page comes from