[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6897.1462868755@warthog.procyon.org.uk>
Date: Tue, 10 May 2016 09:25:55 +0100
From: David Howells <dhowells@...hat.com>
To: Christoph Hellwig <hch@...radead.org>
Cc: dhowells@...hat.com, linux-fsdevel@...r.kernel.org,
linux-afs@...ts.infradead.org, linux-nfs@...r.kernel.org,
samba-technical@...ts.samba.org, linux-kernel@...r.kernel.org,
linux-ext4@...r.kernel.org
Subject: Re: [PATCH 1/6] statx: Add a system call to make enhanced file info available
Christoph Hellwig <hch@...radead.org> wrote:
> > It does what stat() does now, whatever that is for each fs. The
> > assumption is that this might be used to emulate stat() from userspace.
> > However, we want to be able to make sure we get the two behaviours above.
>
> And why would you emulate stat if we already have a perfectly working
> version of it? Either way we need to document what that behavior is,
> and why userspace would chose one of the three options.
Because it's not necessarily a perfectly working version of it. See the Y2037
problem for example.
I was assuming that C libraries might want to update the struct stat and the
stat call() to provide fields that aren't currently there in Linux but are in
other OS's. We could even dispense with older stat syscalls on new arches.
Admittedly, this means that you would have backwardly incompatible versions of
the C library and would have to version your interface, so it might be too
much effort.
However, if we're going to discard this possibility, we can make these
features available only to direct calls of extended stat.
David
Powered by blists - more mailing lists