Or years if the OS crashes afterwards.
I also wonder what happens if the file is deleted before the zeros are flushed. Is there some implicit flush, triggered by metadata changes, which saves the day? No idea.
I also wonder what happens if the file is deleted before the zeros are flushed. Is there some implicit flush, triggered by metadata changes, which saves the day? No idea.
[1] https://nodejs.org/api/fs.html#fs_fs_fsync_fd_callback