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

# [NAME](#NAME)

llapi\_layout\_comp\_flags\_get, llapi\_layout\_comp\_flags\_set, llapi\_layout\_comp\_flags\_clear - get, set or clear the flags of a layout component.

# [SYNOPSIS](#SYNOPSIS)

```
#include <lustre/lustreapi.h>
```

```
int llapi_layout_comp_flags_get(const struct llapi_layout *layout,
                                uint32_t *flags);
```

```
int llapi_layout_comp_flags_set(struct llapi_layout *layout,
                                uint32_t flags);
```

```
int llapi_layout_comp_flags_clear(struct llapi_layout *layout,
                                  uint32_t flags);
```

# [DESCRIPTION](#DESCRIPTION)

Layout component flags are used to indicate the status of the component, only LCME\_FL\_INIT is supported now, which indicates the OST objects of the component have been initialized.

[**llapi\_layout\_comp\_flags\_get**(3)](/man/enterprise-packages/lustre/llapi_layout_comp_flags_get.3) gets the flags of *layout* and stores it into *flags*.

[**llapi\_layout\_comp\_flags\_set**(3)](/man/enterprise-packages/lustre/llapi_layout_comp_flags_set.3) sets the specified *flags* to the *layout*.

[**llapi\_layout\_comp\_flags\_clear**(3)](/man/enterprise-packages/lustre/llapi_layout_comp_flags_clear.3) clears the specified *flags* from the *layout*.

# [RETURN VALUES](#RETURN_VALUES)

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\_flags\_get(),** **llapi\_layout\_comp\_flags\_set()** and **llapi\_layout\_comp\_flags\_clear()** 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_flags_set(3) from lustre 2.17.60-r0 (Chainguard OS)
Source: https://github.com/lustre/lustre-release
