OS Manuals

llapi_layout_comp_add(3)

llapi_layout_comp_add, llapi_layout_comp_del - add or delete a layout component into/from the layout.

LLAPI_LAYOUT_COMP_ADD(3) Lustre Library Functions LLAPI_LAYOUT_COMP_ADD(3)

llapi_layout_comp_add, llapi_layout_comp_del - add or delete a layout component into/from the layout.

#include <lustre/lustreapi.h>
int llapi_layout_comp_add(struct llapi_layout *layout,
                          struct llapi_layout *comp);
int llapi_layout_comp_del(struct llapi_layout *layout,
                          struct llapi_layout *comp);

A composite layout is made of several layout components.

llapi_layout_comp_add(3) adds the layout component comp into the existing in-memory layout under construction, and comp is freed. The layout will be turned into composite if it was plain before adding. All layout attributes of comp will be inherited from the layout, unless otherwise specified for this component by llapi_layout_*_set(3) functions.

llapi_layout_comp_del(3) deletes the layout component comp from the in-memory layout, but does not delete the component from an existing file layout on the MDT.

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

An invalid argument was specified.

llapi_layout_comp_add() and llapi_layout_comp_del() are part of the lustre(7) user application interface library since release 2.10.0.

llapi_layout_alloc(3), llapi_layout_file_comp_add(3), llapi_layout_file_comp_del(3), llapi_layout_file_open(3), llapi_layout_free(3), llapi_layout(7), lustreapi(7)

2024-08-27 Lustre User API

lustre 2.17.59-r1 · enterprise-packages · ingested 2026-10-02