simple_rename_timestamp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ simple_rename_timestamp(9) ✨

okay so bestie, welcome to the kernel API manual, this one's simple_rename_timestamp(9) β€” the little helper that handles all your rename timestamp drama πŸ’…


🌸 NAME 🌸

simple_rename_timestamp β€” update the various inode timestamps for rename ✨


πŸŽ€ SYNOPSIS πŸŽ€

void simple_rename_timestamp (struct inode *old_dir , struct dentry
*old_dentry , struct inode *new_dir , struct dentry *new_dentry );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • old_dir β€” the old parent directory, like where the thing was living before 🏠
  • old_dentry β€” the dentry that is being renamed, aka the main character of this whole operation πŸ‘‘
  • new_dir β€” the new parent directory, its new address fr fr πŸ“¦
  • new_dentry β€” the target for rename 🎯

πŸ’– DESCRIPTION πŸ’–

so POSIX literally mandates this, no cap: the old and new parent directories both gotta have their ctime and mtime updated ⏰✨

and also β€” the inodes of old_dentry and new_dentry (if there even is one, like, if any) get their ctime updated too πŸ’«

that's it, that's the whole vibe check 🫢


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./fs/libfs.c, plus the whole friend group:


mwah, that's the page πŸ’œ this lil entry lives under ./fs and is dated October 2026 β€” go off, timestamps, slay πŸŽ€βœ¨

πŸ“¦ where this page comes from