tmpfs bug: open("/dev/shm/foo", O_RDWR | O_CREAT | O_EXCL | O_DIRECT)
Hi Al, everyone,
I've come across the following odd behaviour of open() on tmpfs. When a file is opened open("/dev/shm/foo", O_RDWR | O_CREAT | O_EXCL | O_DIRECT), open() fails with EINVAL. This failure is expected, as tmpfs doesn't support O_DIRECT. What is unexpected is that the file is created and a subsequent attempt to create the file by doing an open("/dev/shm/foo", O_RDWR | O_CREAT | O_EXCL). I consider this to be a bug. Al, any thoughts?
-ben
Signature · 1 line
"Thought is the essence of where you are now."