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.

Change-Id: Ic8bf88cf449ba46abe21a44abf50d0bbc62e4bb0
Signed-off-by: Philippe Longepe <philippe.longepe@intel.com>
Signed-off-by: zhongjie <zhongjie.shi@intel.com>
Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-12476
3 files changed