From: Benjamin LaHaise <bcrl@kvack.org>
To: Al Viro <viro@ZenIV.linux.org.uk>
Cc: linux-fsdevel@vger.kernel.org
Subject: tmpfs bug: open("/dev/shm/foo", O_RDWR | O_CREAT | O_EXCL | O_DIRECT)
Date: Fri, 4 Sep 2015 14:35:38 -0400 [thread overview]
Message-ID: <20150904183538.GJ6525@kvack.org> (raw)
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."
reply other threads:[~2015-09-04 18:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150904183538.GJ6525@kvack.org \
--to=bcrl@kvack.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=viro@ZenIV.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).