vfs_fsync_range(9)
π vfs_fsync_range(9) π
okay so this is the Kernel API Manual page for vfs_fsync_range, and it is literally a helper to sync a range of data & metadata to disk. bestie, it's giving βmake sure your bytes are actually on diskβ energy. β¨
πΈ NAME πΈ
vfs_fsync_range β helper to sync a range of data & metadata to disk π«Ά
π¦ SYNOPSIS π¦
int vfs_fsync_range (struct file *file , loff_t start , loff_t end , int datasync );
π ARGUMENTS π
fileβ file to sync. like, the file you're syncing, no mystery there πstartβ offset in bytes of the beginning of data range to sync.endβ offset in bytes of the end of data range (inclusive). yes, inclusive β theendbyte is included, okay? πdatasyncβ perform only datasync. that's it, that's the whole vibe for this one.
π₯ DESCRIPTION π₯
Write back data in range start..end and metadata for file to disk. If datasync is set, only metadata needed to access modified file data is written. periodt. π
vibe check: keepstart..endand thedatasyncbehaviour exactly as written βendis inclusive, anddatasyncmeans only that specific metadata gets written. no extra lore, bestie. π§
π SEE ALSO π
Kernel file ./fs/sync.c, vfs_fsync(9) π
kisses from the ./fs source corner, October 2026, vfs_fsync_range(9) edition β 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