OS Manuals

llapi_layout_comp_extent_set(3)

llapi_layout_comp_extent_get, llapi_layout_comp_extent_set - get or set the extent of a layout component.

LLAPI_LAYOUT_COMP_EXTENT_GET(3) Lustre Library Functions LLAPI_LAYOUT_COMP_EXTENT_GET(3)

llapi_layout_comp_extent_get, llapi_layout_comp_extent_set - get or set the extent of a layout component.

#include <lustre/lustreapi.h>
int llapi_layout_comp_extent_get(const struct llapi_layout *layout,
                                 uint64_t *start, uint64_t *end);
int llapi_layout_comp_extent_set(const struct llapi_layout *layout,
                                 uint64_t start, uint64_t end);

The extent [start, end) defines the range of a layout component.

llapi_layout_comp_extent_get(3) gets the extent of the current component of layout and stores it into start and end.

llapi_layout_comp_extent_set(3) sets the extent [start, end) to the current component of layout.

llapi_layout_comp_extent_get() and llapi_layout_comp_extent_set() 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_extent_get() and llapi_layout_comp_extent_set() are part of the lustre(7) user application interface library since release 2.10.0

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

2024-08-27 Lustre User API

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