If I run fsfreeze on a mounted filesystem, it will not be possible to perform new "write" operations on that FS until it is unfrozen, and "ongoing" writes should "complete".
Now, will fsfreeze also flush the FS caches, after it starts blocking new writes, and after it completes those ongoing writes, and before it returns? Can you point me to any authoritative source, please?
I've spent time reading the docs, but couldn't find this explicitly mentioned anywhere. The closest I find is "creates a stable image on disk" -- does this mean that it flushes the FS caches?
Thanks.
fsfreeze
uses the FIFREEZE ioctl. Here is the kernel function call chain:From the comment above the sync_filesystem() function: "[w]rite out and wait upon all dirty data associated with this superblock [filesystem]. Filesystem data as well as the underlying block [will be written."