nfsd_removexattr(9)
π 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 π₯
- Kernel file
./fs/nfsd/vfs.c nfserrno(9)nfsd_lookup(9)nfsd_setattr(9)nfsd4_is_junction(9)nfsd_open_verified(9)nfsd_splice_read(9)nfsd_iter_read(9)nfsd_vfs_write(9)nfsd_read_splice_ok(9)nfsd_read(9)nfsd_write(9)nfsd_commit(9)nfsd_create_setattr(9)nfsd_symlink(9)nfsd_link(9)nfsd_rename(9)nfsd_unlink(9)nfsd_readdir(9)nfsd_filp_close(9)nfsd_get_case_info(9)
literally the whole nfsd friend group showed up for this one ππ
ngl this is a whole lot ofnfsd_*functions and every single one of them is doing its own little thing. read them, love them, they're all in./fs/nfsd/vfs.cenergy. π
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms