This document discusses the data flow process from an application to disk storage. The application writes data to a library buffer using functions like fwrite() and fprintf(). The library then writes the buffered data to the operating system buffer using the write system call. The OS periodically flushes its buffer to disk, usually every 5-30 seconds, though it can be delayed further in laptop power saving mode. Functions like fsync, fdatasync, and sync can force an immediate flush to disk, but have some caveats.