LLAPI_PCCDEV_SET(3)
π LLAPI_PCCDEV_SET π
okay bestie, welcome to the Lustre Library Functions corner of the manual, where we're talking about llapi_pccdev_set β the little function that bosses your PCC backends around on a client. she's giving main character energy and honestly? obsessed. π
β¨ NAME β¨
llapi_pccdev_set β add or delete a PCC backend on a client. that's it, that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
#include <lustre/lustreapi.h>
int llapi_pccdev_set(const char *path, const char *cmd);
look at her. two arguments. so clean. so iconic. π
π«Ά DESCRIPTION π«Ά
so llapi_pccdev_set() does the thing: it adds or deletes a PCC backend on the client, and it finds that client through the mount point that path is pointing at. yes, path is your little map to the mount. π
and then there's cmd, which is the input argument that tells her what to actually do. cmd can show up in these forms, no cap:
"add $PCCPATH $PARAM"β add a PCC backend that's referenced by the HSM root path$PCCPATH. new backend, who dis β¨"del $PCCPATH"β delete a PCC backend that's referenced by the HSM root path$PCCPATH. bye girl π"clear"β clear AND remove all PCC backends on a client. like, every single one. nuclear option fr fr π
β RETURN VALUES β
llapi_pccdev_set() comes back with 0 when everything slays, or a negative errno value when it doesn't. no in-between, periodt. π
π ERRORS π
here's the mood-board of ways she can be like "nope":
-ENOMEMβ not enough memory to complete the operation. brain empty, no thoughts, no RAM. π-EFAULTβ the memory region is not properly mapped. it's giving lost in the sauce. π-EINVALβ one or more invalid arguments were handed over. check ur inputs bestie, she's judging (lovingly). π-EOPNOTSUPPβ the PCC backend operation is just not supported. she simply cannot, and won't. π«
π§ AVAILABILITY π§
llapi_pccdev_set() has been part of the lustre(7) user application interface library since release 2.13.0. so she's been here. she's got history. she's a veteran. π
π₯ SEE ALSO π₯
go read it, iykyk π«Ά
real talk tho: ifcmdis malformed orpathdoesn't point at a real mount, expect a negativeerrnoback β she does not do silent failures, and she does not do vibes-based parsing. πΈ
and that's the whole page, bestie!! this was written by the Lustre User API, dated 2024-08-28, and it's the LLAPI_PCCDEV_SET(3) page β so go forth, set those PCC backends, and slay πβ¨π
π¦ where this page comes from
- ubuntu stonking: lustre-client-utils 2.17.58+dfsg-0ubuntu2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms