Re: [PATCH 02/18] xstat: Add a pair of system calls to make extended file stats available [ver #6]

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Howells
Date: Monday, July 19, 2010 - 10:26 am

Linus Torvalds <torvalds@linux-foundation.org> wrote:


That's not what I meant at all.  I meant there may be things out there that
will just use st_btime and st_gen as soon as they appear without anything
having to be done to them because these fields already exist in the BSD stat
struct.

Samba is such an example as this.  It will use st_btime immediately if it
exists as the SMB protocol wants to pass the creation time around.


Not having ls cause a mass automount just because you did an ls of a directory
full of automount points would be very nice.


Perhaps.  As previously mentioned, BSD (and other unices) already make some of
these fields available (notably st_btime and st_gen).  We could also make a
BSD-compatible st_flags available.


I initially did them by getxattr(), but that didn't go down too well.


I suspect they would, though maybe they can say otherwise.  What about SMB
directory enumeration?  I believe that is effectively getdents-with-stat.
Having to do open+stat for each file for that would be painful.

David
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 00/18] Extended file stat functions [ver #6], David Howells, (Wed Jul 14, 7:17 pm)
Re: [PATCH 02/18] xstat: Add a pair of system calls to mak ..., Christoph Hellwig, (Sun Jul 18, 1:48 am)
Re: [PATCH 12/18] xstat: Add a dentry op to handle automou ..., Christoph Hellwig, (Sun Jul 18, 1:50 am)
Re: [PATCH 18/18] xstat: Provide a mechanism to gather ext ..., Christoph Hellwig, (Sun Jul 18, 1:51 am)
Re: [PATCH 02/18] xstat: Add a pair of system calls to mak ..., David Howells, (Mon Jul 19, 10:26 am)