LLAPI_PROJECT_FGETPRJID(3)
π LLAPI_PROJECT_FGETPRJID π
okay so bestie, welcome to llapi_project_fgetprjid from the Lustre Library Functions corner of the universe π β it's a lib function, it lives in the manual, and it's here to read a project that matches a projid out of a specified file and drop it into a buffer. yes girl, we're doing this. β¨
β¨ NAME β¨
llapi_project_fgetprjid β read the project matching projid from a specified file into a buffer π«Ά
πΈ SYNOPSIS πΈ
#include <lustre/lustreapi.h>
int llapi_project_fgetprjid(struct ll_project_handle *hdl,
ll_project *lprj, const unsigned int prjid);
π DESCRIPTION π
So. The llapi_project_fgetnam() function (yes literally that's the name the page says here, don't @ me π) reads the contents of the file specified by hdl->lph_file, keeps going until it finds an entry that matches the prjid you handed it, and then fills the remaining space with the information provided in that file.
And like, important: the buffer has to be preallocated already. You don't get to show up empty-handed, this is not that kind of function. π
π₯ RETURN VALUES π₯
0β on success, slay π-veβ an error code on failure, and it setserrnoappropriately.
π ERRORS π
-EINVALβ if eitherlprjisNULL, orlprj->lprj_sizeis invalid. (like, one of those is not valid and it's not gonna pretend otherwise)
π AVAILABILITY π
llapi_project_fgetprjid() is part of the lustre(7) user application interface library since release 2.17.0 β
π¦ SEE ALSO π¦
lfs_project(1)llapi_project_close(3)llapi_project_fgetnam(3)llapi_project_get(3)llapi_project_getnam(3)llapi_project_getprjid(3)llapi_project_open(3)llapi_project_put(3)projid(5)lustreapi(7)
no cap: every flag, value, error and reference above is kept exactly as it was β I just gave it a vibe check. π
this was Lustre User API, dated 2025-07-01, page LLAPI_PROJECT_FGETPRJID(3) β mwah, go preallocate that buffer bestie π§ππΈ
π¦ 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