LLAPI_PROJECT_PUT(3)
π LLAPI_PROJECT_PUT β the manual page, but make it cute π
okay bestie, gather round, because this one is a lustre library function and it's literally in the Lustre Library Functions section (that's the manual name, mwah) π
β¨ NAME β¨
llapi_project_put β write a project information to a file
like. that's the whole job. it puts project info into a file. iconic behavior honestly π
πΈ SYNOPSIS πΈ
#include <lustre/lustreapi.h>
int llapi_project_put(struct ll_project_handle *hdl, ll_project *lprj,
int flags);
π¦ DESCRIPTION π¦
so the tea is: llapi_project_put() takes all the info you've got sitting in lprj and writes it into the file that hdl->lph_file points at. that's the vibe π«Ά
and here's the plot twist β the function acts completely different depending on what you put in flags, no cap:
- if you pass
LLAPI_PROJECT_OVERWRITE, the existing value gets overwritten. bye bye old data, you're being replaced π - otherwise, the project gets appended to the end of the file. so it just gets tacked on at the bottom like the last message in the group chat π
pick your fighter (your flag) wisely.
β RETURN VALUES β
0β on success. slay, it worked β¨-veβ error code on failure, and it setserrnoappropriately. not the moment, bestie π
π ERRORS π
-EINVALβ if eitherlprj->lprj_projnameorlprj->lprj_projidareNULL. the way this gets checked is throughlprj->lprj_valid. so like, if those are null, invalid, periodt.
fr fr, don't hand it a NULL name or id and then act surprised. it WILL tell on you. π
π AVAILABILITY π
llapi_project_put() is part of the lustre(7) user application interface library since release 2.17.0. so if your version is older than that, this function is not giving what it needs to give, and it's not there at all π
π₯ 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_getprjid(3)llapi_project_open(3)projid(5)lustreapi(7)
go read those too, iykyk π
and that's a wrap on the Lustre User API manual, dated 2025-07-01 β thanks for reading my little dev-doc rant, bestie. mwah, go write some project info π β¨
π¦ 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