Return-Path: linux-nfs-owner@vger.kernel.org Received: from toast.topped-with-meat.com ([204.197.218.159]:54051 "EHLO topped-with-meat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758866Ab2DZWFx (ORCPT ); Thu, 26 Apr 2012 18:05:53 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii From: Roland McGrath To: David Howells Cc: "Myklebust, Trond" , Steve French , "linux-fsdevel@vger.kernel.org" , "linux-nfs@vger.kernel.org" , "linux-cifs@vger.kernel.org" , "samba-technical@lists.samba.org" , "linux-ext4@vger.kernel.org" , "wine-devel@winehq.org" , "kfm-devel@kde.org" , "nautilus-list@gnome.org" , "linux-api@vger.kernel.org" , "libc-alpha@sourceware.org" Subject: Re: [PATCH 0/6] Extended file stat system call In-Reply-To: David Howells's message of Thursday, 26 April 2012 22:57:56 +0100 <10104.1335477476@redhat.com> References: <1335460011.9701.30.camel@lade.trondhjem.org> <20120419140558.17272.74360.stgit@warthog.procyon.org.uk> <20656.1335450358@redhat.com> <1335453958.9701.10.camel@lade.trondhjem.org> <1335459642.9701.27.camel@lade.trondhjem.org> <10104.1335477476@redhat.com> Message-Id: <20120426220552.D98D62C0D3@topped-with-meat.com> Date: Thu, 26 Apr 2012 15:05:52 -0700 (PDT) Sender: linux-nfs-owner@vger.kernel.org List-ID: > What if the xstat() and struct xstat eventually becomes what userspace > uses as stat() (as a wrapper) and struct stat (if such a thing is > possible with glibc versioning)? It's certainly possible with symbol versioning, though it seems much more likely that we'd stick with the existing struct stat and stat* interfaces and only have the implementation using statx underneath (e.g. for new machines or kernel ABIs where the kernel stops providing any calls except for statxat), at least for the foreseeable future. > Do older programs that think they're using stat() and don't know about > the extra fields available expect to see a useful value in st_ino? POSIX requires that st_ino have a useful value for the standard *stat calls. Thanks, Roland