[lkml]   [2010]   [Jun]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] Ext4: Make file creation time, i_version and i_generation available by xattrs
    On Tue, Jun 29, 2010 at 11:44:37PM +0100, David Howells wrote:
    > Jeremy Allison <> 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.

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

    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).


     \ /
      Last update: 2010-06-30 01:03    [W:0.020 / U:9.292 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site