LLAPI\_PCCDEV\_SET(3) Lustre Library Functions LLAPI\_PCCDEV\_SET(3)

# [NAME](#NAME)

llapi\_pccdev\_set - Add/delete a PCC backend on a client

# [SYNOPSIS](#SYNOPSIS)

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

```
int llapi_pccdev_set(const char *path, const char *cmd);
```

# [DESCRIPTION](#DESCRIPTION)

The function **llapi\_pccdev\_set()** adds or deletes a PCC backend on the client with the mount point referenced by *path*. The input argument *cmd* could be in the following forms:

**"add $PCCPATH $PARAM"**

Add a PCC backend referenced by the HSM root path *$PCCPATH*.

**"del $PCCPATH"**

Delete a PCC backend referenced by the HSM root path *$PCCPATH*.

**"clear"**

Clear and remove all PCC backends on a client.

# [RETURN VALUES](#RETURN_VALUES)

**llapi\_pccdev\_set()** return 0 on success or a negative errno value 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\_pccdev\_set()** is part of the [**lustre**(7)](/man/enterprise-packages/lustre/lustre.7) user application interface library since release 2.13.0

# [SEE ALSO](#SEE_ALSO)

[**lustreapi**(7)](/man/enterprise-packages/lustre/lustreapi.7)

2024-08-28 Lustre User API

---

Document: llapi_pccdev_set(3) from lustre 2.17.60-r0 (Chainguard OS)
Source: https://github.com/lustre/lustre-release
