OS Manuals

llapi_project_fgetprjid(3)

llapi_project_fgetprjid - read project matching projid from a specfified file to a buffer

LLAPI_PROJECT_FGETPRJID(3) Lustre Library Functions LLAPI_PROJECT_FGETPRJID(3)

llapi_project_fgetprjid - read project matching projid from a specfified file to a buffer

#include <lustre/lustreapi.h>

int llapi_project_fgetprjid(struct ll_project_handle *hdl,
                            ll_project *lprj, const unsigned int prjid);

The llapi_project_fgetnam() function reads the contents of the file specified by hdl->lph_file, until an entry matches the provided prjid and fills is the remaining space with the information provided in the file. The buffer should be preallocated.

0
on success
error code on failure and sets errno appropriately.

if either lprj is NULL, or lprj->lprj_size is invalid.

llapi_project_fgetprjid() is part of the lustre(7) user application interface library since release 2.17.0

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)

2025-07-01 Lustre User API

lustre 2.17.59-r2 · enterprise-packages · ingested 2026-10-11