HomeSoftware Heritage

pathslicing: Make sure data is flushed to disk before renaming the tempfile

Authored by olasd on Jun 17 2019, 3:22 PM.

Description

pathslicing: Make sure data is flushed to disk before renaming the tempfile

Use fdatasync by default, unless it's not available on the platform, in which
case use the less efficient fsync.

Close T1823