Journal flushing
Journal flushing
Posted Apr 27, 2021 21:41 UTC (Tue) by corbet (editor, #1)In reply to: Preventing information leaks from ext4 filesystems by Paf
Parent article: Preventing information leaks from ext4 filesystems
My phrasing was a bit sloppy there, sorry.
What was meant by "flushing the journal" was "playing the journal out to the filesystem proper". Yes, the journal is written to persistent storage before any other filesystem metadata changes are made. Once the data is in the journal, though, finishing the job becomes less important - the data is saved and won't be lost. The new ioctl() forces the journal to be reflected in the filesystem metadata, then optionally does FITRIM to clear the data from the journal.