gfs2_exchange(9)
π« gfs2_exchange(9) π«
okay so this is a page from the Kernel API Manual β it's gfs2_exchange(9), and bestie, it's literally the function that swaps two files around. icon behavior only. π«Ά
β¨ NAME β¨
gfs2_exchange β exchange two files π
πΈ SYNOPSIS πΈ
int gfs2_exchange (struct inode *odir , struct dentry *odentry , struct
inode *ndir , struct dentry *ndentry , unsigned int flags );
like, five args, one int coming back at you. classic. π
π ARGUMENTS π
odirβ the parent directory of the old file name ποΈodentryβ the old dentry of the file, aka the original onendirβ the parent directory of the new file name πndentryβ the new dentry of the fileflagsβ the rename flags π© (yes, rename flags, that's the vibe)
π¦ RETURN π¦
errno β that's it, that's the return. no cap. β¨
π SEE ALSO π
Kernel file ./fs/gfs2/inode.c β plus the whole friend group:
gfs2_set_iop(9)gfs2_inode_lookup(9)gfs2_lookup_by_inum(9)gfs2_lookup_meta(9)gfs2_lookupi(9)create_ok(9)gfs2_init_xattr(9)init_dinode(9)gfs2_trans_da_blks(9)gfs2_create_inode(9)gfs2_create(9)__gfs2_lookup(9)gfs2_link(9)gfs2_unlink_inode(9)gfs2_unlink(9)gfs2_symlink(9)gfs2_mkdir(9)gfs2_mknod(9)gfs2_atomic_open(9)update_moved_ino(9)gfs2_rename(9)gfs2_get_link(9)gfs2_permission(9)gfs2_setattr(9)gfs2_getattr(9)
and that's the whole page, bestie, we ate and left zero crumbs π source lives at ./fs/gfs2, this one's dated October 2026, and the page itself is gfs2_exchange(9) β 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