Skip to content

Dart:io feature request: Fsync and Fdatasync #8794

Closed
@DartBot

Description

@DartBot

This issue was originally filed by [email protected]


Hi,

I would like to have knowledge and control about whether file data and file metadata is sent to disk or not.

Like fsync and fdatasync on Linux.

This seems quite important to me for server systems.
If an operating system or filesystem does not support that control, than Dart should just ignore the fsync and fdatasync option.

Java NIO offers such control in the form of SYNC and DSYNC.
http://docs.oracle.com/javase/tutorial/essential/io/file.html
http://docs.oracle.com/javase/7/docs/api/java/nio/file/StandardOpenOption.html

And .net offers a similar control as well:
http://msdn.microsoft.com/en-us/library/2bw4h516%28v=VS.90%29.aspx

Best regards

Metadata

Metadata

Assignees

Labels

area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.library-io

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions