LLAPI_PROJECT_GET(3)
π LLAPI_PROJECT_GET β bestie edition β¨
okay so you wanna know about llapi_project_get from the Lustre library functions?? say less, we're doing this π«Ά it lives in the llapi_project_get(3) era of your life and it's lowkey one of the most useful little gremlins in the lustreapi family π
β¨ NAME β¨
llapi_project_get β read project information to a buffer ππ
πΈ SYNOPSIS πΈ
#include <lustre/lustreapi.h>
int llapi_project_get(struct ll_project_handle *hdl, ll_project *lprj);
π¦ DESCRIPTION π¦
okay so here's the vibe: llapi_project_get() reads through the contents of the file that hdl->lph_file points at, and it keeps going until it hits an entry that matches the info you handed it in lprj. π once it finds that match, it fills in the remaining space with the information from that file. that's it, that's the whole job, no cap.
π heads up bestie: the buffer should be preallocated. do that first, king/queen/monarch. don't make it guess.
π« RETURN VALUES π«
0β slay, it worked. success. π-veβ a negative error code when things go sideways, and it setserrnoappropriately. not iconic, but informative. π
π₯ ERRORS π₯
-EINVALβ thrown when bothlprj->lprj_projnameandlprj->lprj_projidareNULL. the check happens throughlprj->lprj_valid. so basically, if you gave it zero identifying info, it's gonna clock that and refuse. periodt.-ENOENTβ no entry was found inhdl->lph_filethat matched the information you specified inlprj. she looked. she searched. nothing. π
π AVAILABILITY π
llapi_project_get() is part of the lustre(7) user application interface library, and it's been here since release 2.17.0. so it's not new-new, but it's not ancient either. main character energy since day one π
π SEE ALSO π
lfs_project(1)llapi_project_close(3)llapi_project_fgetnam(3)llapi_project_fgetprjid(3)llapi_project_getnam(3)llapi_project_getprjid(3)llapi_project_open(3)llapi_project_put(3)projid(5)lustreapi(7)
and that's the whole page bestie π brought to you by the Lustre User API, dated 2025-07-01, and it's giving LLAPI_PROJECT_GET(3) in every way. go preallocate that buffer and get your project info. mwah πβ¨
π¦ where this page comes from
- ubuntu stonking: lustre-client-utils 2.17.58+dfsg-0ubuntu2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms