[erlang-questions] Erlang and fsync

Wojtek Narczyński wojtek@REDACTED
Sat Aug 2 00:54:40 CEST 2014


On 01.08.2014 16:32, Magnus Ahltorp wrote:
> How do people solve this, or don't other people using Erlang want (soft) guarantees that their data is on disk? Do I have to write the code in C and send the files to be fsync:ed over a port?
>
>
I would say that for 'soft' guarantees you don't have to do anything, 
it's already there in the operating system.

> Do I have to write the code in C and send the files to be fsync:ed over a port?
I'd look at fixing file:open to allow opening directories first. Or 
better, look at prim_file, as file is useless for any serious IO, it 
serializes everything.

-- 
Kind regards,
Wojetk



More information about the erlang-questions mailing list