nfsd_removexattr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

nfsd_removexattr β€” bestie, this one removes an extended attribute. that's it, that's the vibe πŸŽ€

so this page lives in the Kernel API Manual, which is giving very much "kernel internals, handle with care" energy, and honestly? iconic of it.


✨ SYNOPSIS ✨

__be32 nfsd_removexattr (struct svc_rqst *rqstp , struct svc_fh *fhp ,
char *name );

look at her. three args, one __be32 return, absolutely no chill. πŸ¦‹


🌸 ARGUMENTS 🌸

  • rqstp β€” the RPC transaction that's currently out here being executed. main character of the moment, fr fr.
  • fhp β€” the NFS filehandle of the object whose xattr you're about to yeet into the void. it's the file's little ID card πŸ’³
  • name β€” the name of the xattr you're removing. and listen β€” it's gotta be NUL-terminated, no cap. don't come at her with a non-terminated string, she will not be slaying that. 😭

πŸ’– DESCRIPTION πŸ’–

okay so the move here is: you pass in a NULL pointer for delegated_inode, and then you simply let the client deal with NFS4ERR_DELAY. lowkey the same energy as what happens with, like, setattr and remove. let the client handle its own drama, we're just here to remove an xattr. 🫢

on success it returns nfs_ok, or alternatively returns an nfsstat β€” in network byte order, bestie, don't forget the byte order, that's the whole ballgame πŸ’€


πŸ”₯ SEE ALSO πŸ”₯

literally the whole nfsd friend group showed up for this one πŸŒˆπŸ‘‘


ngl this is a whole lot of nfsd_* functions and every single one of them is doing its own little thing. read them, love them, they're all in ./fs/nfsd/vfs.c energy. πŸ’œ

okay that's the page!! mwah πŸ’‹ this gem came straight out of ./fs/nfsd and it's dated October 2026 β€” screenshot it, bookmark it, put it on your fridge, i don't care, it's beautiful. see u in the next manpage bestie πŸ§šβ€β™€οΈβ­πŸ“

πŸ“¦ where this page comes from