LLAPI\_LAYOUT\_COMP\_EXTENT\_GET(3) Lustre Library Functions LLAPI\_LAYOUT\_COMP\_EXTENT\_GET(3)

# [NAME](#NAME)

llapi\_layout\_comp\_extent\_get, llapi\_layout\_comp\_extent\_set - get or set the extent of a layout component.

# [SYNOPSIS](#SYNOPSIS)

```
#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);
```

# [DESCRIPTION](#DESCRIPTION)

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

[**llapi\_layout\_comp\_extent\_get**(3)](/man/enterprise-packages/lustre/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)](/man/enterprise-packages/lustre/llapi_layout_comp_extent_set.3) sets the extent [*start*, *end*) to the current component of *layout*.

# [RETURN VALUES](#RETURN_VALUES)

**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).

# [ERRORS](#ERRORS)

[**EINVAL**](#EINVAL)

An invalid argument was specified.

# [AVAILABILITY](#AVAILABILITY)

**llapi\_layout\_comp\_extent\_get()** and **llapi\_layout\_comp\_extent\_set()** are part of the [**lustre**(7)](/man/enterprise-packages/lustre/lustre.7) user application interface library since release 2.10.0

# [SEE ALSO](#SEE_ALSO)

[**llapi\_layout\_alloc**(3)](/man/enterprise-packages/lustre/llapi_layout_alloc.3), [**llapi\_layout\_file\_open**(3)](/man/enterprise-packages/lustre/llapi_layout_file_open.3), [**llapi\_layout**(7)](/man/enterprise-packages/lustre/llapi_layout.7), [**lustreapi**(7)](/man/enterprise-packages/lustre/lustreapi.7)

2024-08-27 Lustre User API

---

Document: llapi_layout_comp_extent_get(3) from lustre 2.17.59-r2 (Chainguard OS)
Source: https://github.com/lustre/lustre-release
