Use O_DSYNC instead of O_SYNC when opening a file with mode="rwd".
It distinguishes O_DSYNC and O_SYNC since Linux 2.6.33 which gives
more options to user space applications. The perfomance
RandomAccessFile will get benefit from this. And it makes the
implementation of "rwd" complied with the spec.
Signed-off-by: Philippe Longepe <firstname.lastname@example.org>
Signed-off-by: zhongjie <email@example.com>
3 files changed