[NSWI131] HW 7: O_DIRECT vs O_SYNC
Kuba Maroušek
kuba at ulmo.cz
Mon Apr 20 18:40:22 CEST 2020
Hello,
I'm working on the last homework to date and was wondering, can I use
O_SYNC instead of O_DIRECT when calling open()?
I was able to make O_DIRECT work with an ordinary file, however, it
does not let me write to /dev/null. From the manual page, it seems we
can use O_SYNC as well because this option also forces the data to be
written to the real destination. Is this correct?
Thank you for the answer
Kuba Maroušek
More information about the NSWI131
mailing list