LLAPI_PROJECT_FGETNAM(3)
β¨ LLAPI_PROJECT_FGETNAM β¨
okay bestie, welcome to the lustre library corner of the manual β this one lives in section 3 of the Lustre Library Functions, and it's about pulling a project out of a file by its name. let's get into it π
πΈ NAME πΈ
llapi_project_fgetnam β read a project that matches a name from a specified file, straight into a buffer π«Ά
π SYNOPSIS π
#include <lustre/lustreapi.h>
int llapi_project_fgetnam(struct ll_project_handle *hdl, struct ll_project *lprj,
const char *name);
π¦ DESCRIPTION π¦
so here's the vibe: llapi_project_fgetnam() reads through the contents of the file that you pointed at with hdl->lph_file, and it just keeps going until it finds an entry that matches the *name you handed it. once it snags that match, it fills in the rest of the space with the info from that file. that's the whole main character moment. π
and like β the buffer needs to be preallocated, no cap. you gotta bring your own space, this function is not out here doing that for you π
π₯ RETURN VALUES π₯
0β slay, it worked, success β¨-veβ nope, that's an error code, and it setserrnoappropriately so you can find out what went wrong π
π ERRORS π
-EINVALβ thrown when eitherlprjisNULL, or whenlprj->lprj_sizeis invalid. like, one of those two things is off, bestie, check both π
π AVAILABILITY π
llapi_project_fgetnam() has been part of the lustre(7) user application interface library since release 2.17.0 β she's been around since then, iconic behavior β
π SEE ALSO π
lfs_project(1)llapi_project_close(3)llapi_project_fgetprjid(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)
okay that's the whole page, bestie, you're basically a lustre project-handling expert now π§ this one came out of the Lustre User API with a date stamp of 2025-07-01 β go forth and match those names ππ
π¦ 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