Add a workaround for open(2) with O_CREATE | O_DIRECT on Linux
open(, O_CREAT | O_DIRECT, ) creates a file and then fails with EINVAL in case if the underlying filesystem doesn't support O_DIRECT. This behaviour is stupid and unexpected.
Loading
Please register or sign in to comment