This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: RFC: reject unknown open flags
- From: Christoph Hellwig <hch at lst dot de>
- To: Linus Torvalds <torvalds at linux-foundation dot org>
- Cc: Christoph Hellwig <hch at lst dot de>, Alexander Viro <viro at zeniv dot linux dot org dot uk>, Linux API <linux-api at vger dot kernel dot org>, linux-fsdevel <linux-fsdevel at vger dot kernel dot org>, Linux Kernel Mailing List <linux-kernel at vger dot kernel dot org>, libc-alpha <libc-alpha at sourceware dot org>
- Date: Thu, 30 Mar 2017 19:21:59 +0200
- Subject: Re: RFC: reject unknown open flags
- Authentication-results: sourceware.org; auth=none
- References: <20170330163327.23920-1-hch@lst.de> <CA+55aFw92r4h4sNW41ifs31ixdZpNmaxY23KthB9R-LXNm7p-w@mail.gmail.com>
On Thu, Mar 30, 2017 at 10:08:10AM -0700, Linus Torvalds wrote:
> What kind of new flag did you even have in mind that would have such
> broken semantics that it would completely change the other flags?
> Becuase now I'm starting to think that the whole series has an even
> deeper bug: stupid new features that were badly thought out and not
> even described.
Failure atomic file updates, aka O_ATOMIC:
https://lwn.net/Articles/573092/
Currently the way to probe for it is a new ioctl to check if atomicy
is offered. This should work, but it's rather fragile..