OS Manuals

llapi_layout_comp_id_get(3)

llapi_layout_comp_id_get - get the ID of a layout component.

LLAPI_LAYOUT_COMP_ID_GET(3) Lustre Library Functions LLAPI_LAYOUT_COMP_ID_GET(3)

llapi_layout_comp_id_get - get the ID of a layout component.

#include <lustre/lustreapi.h>
int llapi_layout_comp_id_get(const struct llapi_layout *layout,
                             uint32_t *comp_id);

Return the unique numeric ID comp_id of the currently active component of layout. The ID of a component is a unique numeric identifier for the component within the layout of each file, and no age, ordering, relative position, or other semantics are implied by the component ID. If a file's layout is modified a large number of times, the component ID may be re-used but will always be unique within a single file's layout.

Return 0 on success. Return -1 if an error occurred and set errno appropriately.

An invalid argument was specified.

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

llapi_layout_alloc(3), llapi_layout_comp_use_id(3), llapi_layout_file_open(3), llapi_layout(7), lustreapi(7)

2024-08-27 Lustre User API

lustre 2.17.59-r2 · enterprise-packages · ingested 2026-10-11