nfsd_rename(9)
π¦ nfsd_rename(9) β Kernel API Manual π¦
okay bestie, welcome to the group chat π you're looking at nfsd_rename(9) from the Kernel API Manual, and it's giving "rename a directory entry" main character energy β¨ no cap.
πΈ NAME πΈ
nfsd_rename β rename a directory entry π
β¨ SYNOPSIS β¨
the signature is exactly this, bestie β copy it character for character or the vibe check will fail π«Ά
__be32 nfsd_rename (struct svc_rqst *rqstp , struct svc_fh *ffhp , char
*fname , int flen , struct svc_fh *tfhp , char *tname , int tlen );
π ARGUMENTS π
rqstpβ the RPC transaction context, aka the request's little passport πffhpβ the file handle of parent directory containing the entry to be renamed ποΈfnameβ the filename of directory entry to be renamed βοΈflenβ the length offnamein octets πtfhpβ the file handle of parent directory to contain the renamed entry πtnameβ the filename of the new entry π·οΈtlenβ the length oftlenin octets π that's what the page says, and we're not editing the icon's receipts, fr fr
π¦ DESCRIPTION π¦
okay so here's the tea β: after this call _both_ ffhp and tfhp need an fh_put β literally both of them, bestie, don't leave either one hanging π.
it returns a generic NFS status code in network byte-order β¨.
π SEE ALSO π
the kernel file ./fs/nfsd/vfs.c is in the chat too π and these are the linked icons, all in their exact (9) glory:
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_unlink(9)nfsd_readdir(9)nfsd_filp_close(9)nfsd_removexattr(9)nfsd_get_case_info(9)
xoxo, your resident Unix bestie π§π β this page's source/version is ./fs/nfsd, dated October 2026, and that's the footer flex periodt π
π¦ 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