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 <email@example.com>
Signed-off-by: zhongjie <firstname.lastname@example.org>
3 files changed