LLAPI_PCC_DEL(3)

πŸ“¦ version 2.17.58, in ubuntu stonking

πŸ’… LLAPI_PCC_DEL β€” bestie edition πŸ’…

okay so this is a page from the lustre library functions manual set (section 3, the library-call girlies ✨). it's basically the "bye bye PCC backend" button and i'm obsessed with it, let's get into it 🫢


✨ NAME ✨

llapi_pcc_del β€” Delete a PCC backend from a client 🌸

no cap, that's the whole job description: it deletes a PCC backend off a client. that's it, that's the vibe.


✨ SYNOPSIS ✨

#include <lustre/lustreapi.h>

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

three args, one include, zero drama πŸ’–


✨ DESCRIPTION ✨

so like, llapi_pcc_del() deletes a PCC backend that's referenced by pccpath, on the client whose mount point is mntpath. iconic. main character behavior fr fr.

by default, when you remove a PCC backend from a client, the move is to scan the PCC backend fs, and then uncache β€” meaning detach and remove β€” all the scanned PCC copies from PCC by FIDs. so yeah, it goes through and yanks every copy it finds, identified by FID. very thorough, very "blocked and deleted" energy πŸ’…

now, the input parameter flags currently only has one value, and it's PCC_CLEANUP_FL_KEEP_DATA. what that means is: it removes the PCC backend from the Lustre client but retains the data on the cache. bestie, that is the "we can still be friends" option πŸ₯Ί in this case the PCC-RW backend falls back to being a traditional HSM storage solution, and the file data is still accessible β€” as long as the copytool is still running on this client. so like, the copytool has to stay up, okay? don't close the app 😭

⚠️ heads up: that "data still accessible" thing is conditional. copytool running on this client = fine. copytool not running = not fine. no guessing, that's literally what the manpage says, i'm just making sure you saw it πŸ‘€

✨ RETURN VALUES ✨

  • 0 β€” success, slay, we ate ✨
  • negative errno value β€” failure, it's giving sad girl hours 😭

✨ ERRORS ✨

  • -ENOMEM β€” Insufficient memory to complete operation. she's out of brain space πŸ§ πŸ’€
  • -EFAULT β€” Memory region is not properly mapped. the memory is... not where it said it would be πŸ™ˆ
  • -EINVAL β€” One or more invalid arguments are given. bestie we talked about this, check your args πŸ’…
  • -EOPNOTSUPP β€” PCC backend operation is not supported. this operation said "not today" πŸ’€

✨ AVAILABILITY ✨

llapi_pcc_del() is part of the lustre(7) user application interface library, and it's been around since release 2.16.0. so like, if you're on something older than that... no she's not there yet, sorry πŸŽ€


✨ SEE ALSO ✨


and that's the whole page!! ty for reading my little unix info dump, mwah πŸ’– writing this out was a Lustre User API moment, dated 2024-08-28 in the archives of my heart. bye bestie, go delete responsibly πŸŽ€βœ¨πŸ‘‘

πŸ“¦ where this page comes from