| LLAPI_PCCDEV_SET(3) | Lustre Library Functions | LLAPI_PCCDEV_SET(3) |
NAME
llapi_pccdev_set - Add/delete a PCC backend on a client
SYNOPSIS
#include <lustre/lustreapi.h>
int llapi_pccdev_set(const char *path, const char *cmd);
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
llapi_pccdev_set() return 0 on success or a negative errno value on failure.
ERRORS
- -ENOMEM
- Insufficient memory to complete operation.
- -EFAULT
- Memory region is not properly mapped.
- -EINVAL
- One or more invalid arguments are given.
- -EOPNOTSUPP
- PCC backend operation is not supported.
AVAILABILITY
llapi_pccdev_set() is part of the lustre(7) user application interface library since release 2.13.0
SEE ALSO
| 2024-08-28 | Lustre User API |