You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It does Close() and Rename(), but NOT Sync() before close. Apparently Close() does not guarantee buffers hit the disk:
A successful close does not guarantee that the data has been successfully saved to disk, as the kernel defers writes. It is not common for a file system to flush the buffers when the stream is closed. If you need to be sure that the data is physically stored use fsync(2).
It does
Close()
andRename()
, but NOTSync()
before close. ApparentlyClose()
does not guarantee buffers hit the disk:Source: close() syscall documentation
The
(2)
is a user-hostile way to abbreviate "(system call)"The text was updated successfully, but these errors were encountered: