LLAPI_PROJECT_GETPRJID(3)
π LLAPI_PROJECT_GETPRJID π
okay bestie, welcome to the Lustre Library Functions corner of the manual, she's serving C API realness and honestly? we're obsessed π«Ά
β¨ NAME β¨
llapi_project_getprjid β read project matching a project ID to a buffer
like,,, she finds the project entry you're looking for and drops it in your buffer. iconic behaviour. π
β¨ SYNOPSIS β¨
#include <lustre/lustreapi.h>
int llapi_project_get(struct ll_project *lprj, const unsigned int prjid);
β¨ DESCRIPTION β¨
so here's the tea π΅ β llapi_project_getprjid() reads the contents of the LIBLUSTREAPI_PROJECT file, straight up scrolling until it finds an entry that matches the prjid you handed it, and then it fills in the remaining space with the info provided in the file.
the buffer should be preallocated. π
no cap, do that first. she is not allocating for you, she is not your mom, she is a getter. π
β¨ RETURN VALUES β¨
0β slayed β¨ on success-veβ error code on failure, and it setserrnoappropriately. yes, negative, she's dramatic like that π
β¨ ERRORS β¨
-EINVALβ if opening the file fails, or iflprjisNULL, or iflprj->lprj_sizeis invalid. basically: bad input energy, we don't do that here π-ENOENTβ if no entry was found inLIBLUSTREAPI_PROJECTwith information matchingprjid. she looked. she genuinely looked. it's not there bestie π₯²
β¨ AVAILABILITY β¨
llapi_project_getprjid() is part of the lustre(7) user application interface library since release 2.17.0 β so if you're on something older, that's a vibe check fail, upgrade fr fr πΈ
β¨ SEE ALSO β¨
lfs_project(1)llapi_project_close(3)llapi_project_fgetnam(3)llapi_project_fgetprjid(3)llapi_project_get(3)llapi_project_getnam(3)llapi_project_open(3)llapi_project_put(3)projid(5)lustreapi(7)
reminder bestie: the synopsis up top literally calls itllapi_project_getwhile the NAME section saysllapi_project_getprjidβ I am NOT the one who wrote it that way, I am simply the messenger, and I am reporting it verbatim ππ
and that's a wrap on this one, babe π this page came to you from the Lustre User API, dated 2025-07-01, filed under LLAPI_PROJECT_GETPRJID(3) β go forth and get those project IDs, ily, bye ππ¦β¨
π¦ 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