Re: why is O_TMPFILE multiplexed over open() instead of being a separate syscall?

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

 



On Thu, 1 Aug 2013 01:42:53 -0700
Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote:

> Sorry for being a bit late to the game, but..
> 
> Why is the useful tmpfile functionality multiplexed over open when it
> has very different semantics from a normal open?
> 
> In addition to the flag problems already discussed to death it also just
> leads to splattering of the code in the implementaiton, given that
> path_openat branches out really early in path_openat.
> 
> What's the problem with a clear single purpose tmpfile() system call?

Agreed. A new syscall for this seems like it would be a lot cleaner.

I mentioned that to Al via IRC when he first showed me these patches
but he didn't like the idea (I don't recall his rationale though). I
probably should have followed that up with an email to the mailing
list, but the first public mention of it was the pull request...

-- 
Jeff Layton <jlayton@xxxxxxxxxx>
--
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