Re: [PATCH] Ext4: Make file creation time, i_version and i_generation available by xattrs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 29, 2010 at 11:44:37PM +0100, David Howells wrote:
> Jeremy Allison <jra@xxxxxxxxx> wrote:
> 
> > We already have code in Samba to detect "birthtime"
> > (st_btime) as a returned member of a stat struct.
> 
> Is it, though?
> 
> Googling for st_btime suggests it could also be taken as the time last
> archived.  That may just be a NetWareism though.

It's a *BSD'ism.

http://www.daemon-systems.org/man/fstat.2.html

     #if defined(_NETBSD_SOURCE)
         struct timespec st_birthtimespec;   /* time of inode creation */
     #else
         time_t    st_birthtime;             /* time of inode creation */
         long      st_birthtimensec;         /* nsec of inode creation */
     #endif

http://www.unix.com/man-page/FreeBSD/2/stat/

st_birthtime  Time when the inode was created.

Of course, for Samba's use we also have to be
able to *write* to st_birthtime as Windows clients
can change this. But that's what the EA is for
(and I'm happy with a system that can only read
st_birthtime, not write it).

Jeremy.
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux