LLAPI_PROJECT_FGETNAM(3)

NAME
llapi_project_fgetnam - read project matching a name from specified file 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
The llapi_project_fgetnam() function reads the contents of the file specified by hdl->lph_file, until an entry matches the provided *name, and fills is the remaining space with the information provided in the file. The buffer should be preallocated.

RETURN VALUES

0   on success

-ve error code on failure and sets errno appropriately.

ERRORS

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

AVAILABILITY
llapi_project_fgetnam() 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_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)