vfs_fsync(9)
πΈ NAME πΈ
okay bestie, this is vfs_fsync(9) from the Kernel API Manual, and its whole thing is: perform a fsync or fdatasync on a file. no cap π
β¨ SYNOPSIS β¨
int vfs_fsync (struct file *file , int datasync );
itβs giving βsmall signature, big disk energyβ fr fr π«Ά
π ARGUMENTS π
fileβ the file to sync. main character behavior, honestly.datasyncβ only perform afdatasyncoperation. thatβs literally the whole vibe of this argument.
π¦ DESCRIPTION π¦
So vfs_fsync writes back data and metadata for file to disk. If datasync is set, it only writes the metadata needed to access modified file data. thatβs the tea ββ¨
π SEE ALSO π
- Kernel file
./fs/sync.c vfs_fsync_range(9)
and thatβs the page, bestie π big cute sign-off: this one comes from source/version ./fs, dated October 2026. mwah πβ¨
π¦ 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