google / gvisor

Application Kernel for Containers
https://gvisor.dev
Apache License 2.0
15.68k stars 1.29k forks source link

Support fine-grained file sync #1897

Open dean-deng opened 4 years ago

dean-deng commented 4 years ago

Currently, there is no distinction between data sync and full file sync (for example, Fdatasync simply calls Fsync). While correct, this unnecessarily flushes metadata.

dean-deng commented 4 years ago

We also do not support partial file sync (e.g. sync_file_range does a full file sync).