Re: PROBLEM: Failed open() with O_DIRECT creates file

From: Hallvard Breien Furuseth
Date: Wed Sep 07 2016 - 11:16:22 EST


I wrote:
To reproduce, run this as:

./a.out /dev/test-direct.dat

(Originally I wrote to /dev/shm/, but tmpfs now accepts O_DIRECT.)

No, I was running on /tmp, not /tmpfs:-)
"./a.out /dev/shm/test-direct.dat" is fine.

--
Hallvard