LLAPI_PCC_CLEAR(3)

πŸ“¦ version 2.17.58, in ubuntu stonking

πŸ’– LLAPI_PCC_CLEAR(3) πŸ’–

okay bestie, come sit with me, we're reading a Lustre Library Functions page together and honestly? it's a short one, we love that for us πŸŽ€


✨ NAME ✨

llapi_pcc_clear β€” the function that removes every single PCC backend from a client. all of them. the whole roster. gone πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <lustre/lustreapi.h>

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

🌸 DESCRIPTION 🌸

so llapi_pcc_clear() deletes all PCC backends on the client whose mount point is referenced by mntpath. every one of them. it's giving spring cleaning, it's giving "clear the cache but make it permanent" ✨

and about that flags parameter? don't overthink it, bestie β€” for the usage of the input parameter flags, go look at llapi_pcc_del(). that's the main character for flag semantics, this one just borrows the vibe. iykyk 🫢


πŸ”₯ RETURN VALUES πŸ”₯

  • 0 β€” slay, it worked, success periodt ✨
  • a negative errno β€” not slay, something went wrong 😭

πŸ’€ ERRORS πŸ’€

  • -ENOMEM β€” not enough memory to complete the operation. the RAM said "no thoughts, head empty" πŸ™ˆ
  • -EFAULT β€” the memory region is not properly mapped. it's giving lost in the sauce πŸ’€
  • -EINVAL β€” one or more invalid arguments were given. bestie… check your args fr fr 😭
  • -EOPNOTSUPP β€” PCC backend operation is not supported here. this client said "not my era" πŸ‘‘

⭐ AVAILABILITY ⭐

llapi_pcc_clear() is part of the lustre(7) user application interface library, and it's been here since release 2.16.0 πŸŽ€ so if you're on something older… babe, upgrade πŸ’…


🌈 SEE ALSO 🌈


and that's the whole page, you ate that πŸ“πŸ’œ this was the Lustre User API page, dated 2024-08-28, and i'm obsessed with you for reading a manpage for fun. go clear some backends, queen πŸ‘‘βœ¨

πŸ“¦ where this page comes from