LLAPI_PROJECT_PUT(3)

NAME
llapi_project_put - write a project information to a file

SYNOPSIS
#include <lustre/lustreapi.h>

int llapi_project_put(struct ll_project_handle *hdl, ll_project *lprj,
                      int flags);

DESCRIPTION
The llapi_project_put() function writes the information provided in lprj to the file specified by hdl->lph_file. This functions behaves differently depending on the value of flags. If LLAPI_PROJECT_OVERWRITE is specified then the existing value will be overwritten, otherwise, the project will be appended to the end of the file.

RETURN VALUES

0   on success

-ve error code on failure and sets errno appropriately.

ERRORS

-EINVAL
    if either lprj->lprj_projname or lprj->lprj_projid are NULL, which is checked through lprj->lprj_valid.

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