OS Manuals

llapi_layout_file_comp_add(3)

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

LLAPI_LAYOUT_FILE_COMP_ADD(3) Lustre Library Functions LLAPI_LAYOUT_FILE_COMP_ADD(3)

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

#include <lustre/lustreapi.h>
int llapi_layout_file_comp_add(const char *path,
                               const struct llapi_layout *layout);

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

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

EINVAL
An invalid argument was specified.
path doesn't exist.

llapi_layout_file_comp_add() is part of the lustre(7) user application interface library since release 2.10.0

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

2024-08-27 Lustre User API

lustre 2.17.60-r0 · enterprise-packages · ingested 2026-10-22