llapi_layout_file_comp_add(3)

NAME
llapi_layout_file_comp_add - add one or more components into an existing file.

SYNOPSIS
#include <lustre/lustreapi.h>

int llapi_layout_file_comp_add(const char *path,
                               const struct llapi_layout *layout);

DESCRIPTION

Add component(s) specified in layout into the existing file path.

RETURN VALUES
Return 0 on success, or -1 if an error occurred (in which case, errno is set appropriately).

ERRORS

EINVAL
    An invalid argument was specified.

ENOENT
    path doesn't exist.

SEE ALSO
llapi_layout_alloc(3), llapi_layout_file_open(3), llapi_layout_comp_add(3), llapi_layout_comp_del(3), llapi_layout(7), lustreapi(7)