LLAPI\_LAYOUT\_FILE\_COMP\_DEL(3) Lustre Library Functions LLAPI\_LAYOUT\_FILE\_COMP\_DEL(3)

# [NAME](#NAME)

llapi\_layout\_file\_comp\_del - delete the specified layout component from an existing file.

# [SYNOPSIS](#SYNOPSIS)

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

```
int llapi_layout_file_comp_del(const char *path,
                               uint32_t id, uint32_t flags);
```

# [DESCRIPTION](#DESCRIPTION)

Deletes the layout component(s) specified by *id* or *flags* from an existing file. The *id* must be a real unique component ID, when *flags* is specified, *id* must be set to zero. Available *flags* are:

**LCME\_FL\_INIT:** Instantiated components in the layout.

**LCME\_FL\_NEG|LCME\_FL\_INIT:** Uninstantiated components in the layout.

# [RETURN VALUES](#RETURN_VALUES)

Returns 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.

[**ENOENT**](#ENOENT)

*path* doesn't exist or the specified component isn't found in file.

# [AVAILABILITY](#AVAILABILITY)

**llapi\_layout\_file\_comp\_del()** is 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\_comp\_id\_get**(3)](/man/enterprise-packages/lustre/llapi_layout_comp_id_get.3), [**llapi\_layout\_comp\_use\_id**(3)](/man/enterprise-packages/lustre/llapi_layout_comp_use_id.3), [**llapi\_layout\_file\_comp\_add**(3)](/man/enterprise-packages/lustre/llapi_layout_file_comp_add.3), [**llapi\_layout\_file\_open**(3)](/man/enterprise-packages/lustre/llapi_layout_file_open.3), [**llapi\_layout\_get\_by\_path**(3)](/man/enterprise-packages/lustre/llapi_layout_get_by_path.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_file_comp_del(3) from lustre 2.17.59-r2 (Chainguard OS)
Source: https://github.com/lustre/lustre-release
