LLAPI_PROJECT_CLOSE(3)

NAME
llapi_project_close - close project mapping file

SYNOPSIS
#include <lustre/lustreapi.h>

int llapi_project_close(struct ll_project_handle *hdl);

DESCRIPTION
The llapi_project_close() function closes the file specified by hdl->lph_file, and releases the state in hdl.

RETURN VALUES

0   on success

-ve error code on failure and sets errno appropriately.

ERRORS

-EINVAL
    if either hdl is NULL, or hdl->lph_magic is invalid.

-errno
    if hdl->lph_file fails to close.

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

SEE ALSO
lfs_project(1), llapi_project_fgetnam(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)