This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 0/6] Extended file stat system call
- From: David Howells <dhowells at redhat dot com>
- To: Andreas Dilger <adilger at dilger dot ca>
- Cc: dhowells at redhat dot com, Steve French <smfrench at gmail dot com>, "linux-fsdevel at vger dot kernel dot org" <linux-fsdevel at vger dot kernel dot org>, "linux-nfs at vger dot kernel dot org" <linux-nfs at vger dot kernel dot org>, "linux-cifs at vger dot kernel dot org" <linux-cifs at vger dot kernel dot org>, "samba-technical at lists dot samba dot org" <samba-technical at lists dot samba dot org>, "linux-ext4 at vger dot kernel dot org" <linux-ext4 at vger dot kernel dot org>, "wine-devel at winehq dot org" <wine-devel at winehq dot org>, "kfm-devel at kde dot org" <kfm-devel at kde dot org>, "nautilus-list at gnome dot org" <nautilus-list at gnome dot org>, "linux-api at vger dot kernel dot org" <linux-api at vger dot kernel dot org>, "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>
- Date: Fri, 27 Apr 2012 10:19:09 +0100
- Subject: Re: [PATCH 0/6] Extended file stat system call
- References: <3F302713-B675-4BAA-B2B7-235E03C5975F@dilger.ca> <CAH2r5mv1Lijdwk5zsQwYJr4Etb6fhrRyNXm-iFCQX+HecboGrQ@mail.gmail.com> <20120419140558.17272.74360.stgit@warthog.procyon.org.uk> <CAH2r5ms4WQV3DnTvqNN=2N71Cj8UHwj8Z6+RHXgrAOv6mSoyQg@mail.gmail.com> <20656.1335450358@redhat.com> <24787.1335455535@redhat.com>
Andreas Dilger <adilger@dilger.ca> wrote:
> > However, since there is a remote file ID, we could add an
> > XSTAT_INFO_FILE_ID flag to indicate there's a standard xattr holding this.
>
> It is a bit strange that the kernel would return a flag that was not
> requested, but not fatal.
On the other hand, if it costs the kernel nothing to generate this indicator...
For network filesystems, for instance, you might know that there is some other
file ID because of the way the fs is specified.
I was thinking that many of the fields will be given values, even if you don't
ask for them, because the values (or approximations thereof) are present in
memory already.
David