filer icon indicating copy to clipboard operation
filer copied to clipboard

Add support for fs.fdatasync()

Open humphd opened this issue 6 years ago • 2 comments

https://nodejs.org/api/fs.html#fs_fs_fdatasync_fd_callback

humphd avatar Jan 03 '19 03:01 humphd

Is this for compatibility reasons only? According to the docs it's possible for a transaction to report completion before data is flushed to physical storage. There's also no standardization (I think?) between implementations around this behavior. Firefox uses a non-standard API to allow client code to force flushing before completion.

modeswitch avatar Apr 06 '19 02:04 modeswitch

Only for compat, yes, it will be essentially a no-op.

humphd avatar Apr 07 '19 03:04 humphd