You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I somehow ran into fs.open's 'rs' mode, which is basically O_RDONLY | O_SYNC. All the docs I can find point out that O_SYNC is to be used for writing, making a write equivalent to write + fsync. The documentation mentions bypassing caches, which sounds more like O_DIRECT to me.
Is there something I'm missing or does the flag basically do nothing when used with a readonly file?
I somehow ran into
fs.open
's'rs'
mode, which is basicallyO_RDONLY | O_SYNC
. All the docs I can find point out thatO_SYNC
is to be used for writing, making awrite
equivalent towrite + fsync
. The documentation mentions bypassing caches, which sounds more likeO_DIRECT
to me.Is there something I'm missing or does the flag basically do nothing when used with a readonly file?
R=@bnoordhuis, since you landed the commit which introduced it: dfcdd5b
If it's indeed incorrect, i can PR a removal for the next major release.
The text was updated successfully, but these errors were encountered: