tmpfs bug: open("/dev/shm/foo", O_RDWR | O_CREAT | O_EXCL | O_DIRECT)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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."
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux