* tmpfs bug: open("/dev/shm/foo", O_RDWR | O_CREAT | O_EXCL | O_DIRECT)
@ 2015-09-04 18:35 Benjamin LaHaise
0 siblings, 0 replies; only message in thread
From: Benjamin LaHaise @ 2015-09-04 18:35 UTC (permalink / raw)
To: Al Viro; +Cc: linux-fsdevel
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
--
"Thought is the essence of where you are now."
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-09-04 18:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-04 18:35 tmpfs bug: open("/dev/shm/foo", O_RDWR | O_CREAT | O_EXCL | O_DIRECT) Benjamin LaHaise
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).