LLAPI\_PCC\_CLEAR(3) Lustre Library Functions LLAPI\_PCC\_CLEAR(3)

# [NAME](#NAME)

llapi\_pcc\_clear - Remove all PCC backends from a client

# [SYNOPSIS](#SYNOPSIS)

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

```
int llapi_pcc_clear(const char *mntpath,
                    enum lu_pcc_cleanup_flags flags);
```

# [DESCRIPTION](#DESCRIPTION)

The function **llapi\_pcc\_clear()** deletes all PCC backends on the client with the mount point referenced by *mntpath*. Refer to **llapi\_pcc\_del()** for the usage of the input parameter *flags*.

# [RETURN VALUES](#RETURN_VALUES)

**llapi\_pcc\_clear()** returns 0 on success or a negative errno on failure.

# [ERRORS](#ERRORS)

[**-ENOMEM**](#ENOMEM)

Insufficient memory to complete operation.

[**-EFAULT**](#EFAULT)

Memory region is not properly mapped.

[**-EINVAL**](#EINVAL)

One or more invalid arguments are given.

[**-EOPNOTSUPP**](#EOPNOTSUPP)

PCC backend operation is not supported.

# [AVAILABILITY](#AVAILABILITY)

**llapi\_pcc\_clear()** is part of the [**lustre**(7)](/man/enterprise-packages/lustre/lustre.7) user application interface library since release 2.16.0

# [SEE ALSO](#SEE_ALSO)

[**llapi\_pcc\_del**(3)](/man/enterprise-packages/lustre/llapi_pcc_del.3), [**lustreapi**(7)](/man/enterprise-packages/lustre/lustreapi.7)

2024-08-28 Lustre User API

---

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