Re: [PATCH 0/6] Extended file stat system call

2012-04-27 Thread Andreas Dilger
On 2012-04-27, at 7:13 AM, Dave Chinner wrote: > Have a look at fs/xfs/xfs_dinode.h. There's a bunch of flags defined > at the bottom of the file. > > Stuff like the "nodefrag", "nodump", and "prealloc" bits seem fairly > generic - they are for indicating that files are to be avoided for > defrag

Re: [PATCH 0/6] Extended file stat system call

2012-04-27 Thread Andreas Dilger
On 2012-04-26, at 7:06 PM, Dave Chinner wrote: > On Thu, Apr 19, 2012 at 03:05:58PM +0100, David Howells wrote: >> >> Implement a pair of new system calls to provide extended and further >> extensible stat functions. >> >> The second of the associated patches is the main patch that provides thes

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

2012-04-26 Thread Andreas Dilger
On 2012-04-26, at 6:51 PM, Dave Chinner wrote: > On Thu, Apr 26, 2012 at 02:32:36PM +0100, David Howells wrote: >> I wonder if there's a way to make this explicit - or is it something that if >> the bit isn't set, you can't use the value in st_blksize. >> I wonder if this value always has to be no

Re: [PATCH 0/6] Extended file stat system call

2012-04-26 Thread Andreas Dilger
On 2012-04-26, at 10:52, David Howells wrote: > Steve French wrote: >> >> Both NFS and CIFS (and SMB2) can return inode numbers or equivalent unique >> identifier, but in the case of CIFS some old servers don't support the calls >> which return inode numbers (or don't return them for all file s

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

2012-04-25 Thread Andreas Dilger
On 2012-04-24, at 4:29 PM, J. Bruce Fields wrote: > On Thu, Apr 19, 2012 at 03:06:12PM +0100, David Howells wrote: >> (11) Include granularity fields in the time data to indicate the >>granularity of each of the times (NFSv4 time_delta) [Steve French]. > > It looks like you're including this w

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

2012-04-20 Thread Andreas Dilger
On 2012-04-19, at 8:06 AM, David Howells wrote: > Add a pair of system calls to make extended file stats available, > including file creation time, inode version and data version where available > through the underlying filesystem. > > The idea was initially proposed as a set of xattrs that could

Re: [PATCH 0/6] Extended file stat system call

2012-04-20 Thread Andreas Dilger
On 2012-04-19, at 8:05 AM, David Howells wrote: > Implement a pair of new system calls to provide extended and further > extensible stat functions. Hallelujah for this. I've been waiting/wanting something like this for ages already. Now if only we can get this landed before it degrades into the