[Top][All Lists]

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

Re: Support for st_birthtime

From: Eric Blake
Subject: Re: Support for st_birthtime
Date: Mon, 26 Mar 2007 06:29:20 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20070221 Thunderbird/ Mnenhy/

Hash: SHA1

Corinna only replied to the cygwin list.  It looks like Windows will
populate st_birthtime with st_ctime when reading filesystems that don't
support birthtime.  This is a bit yucky, as it adds to the problem wrongly
being perpetuated by Microsoft that ctime stands for creation time instead
of change time.  But I guess all findutils can do is go by what stat()
reports, and users must be aware that ctime==btime may be the indicator
that btime is not supported for that file.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden

- -------- Original Message --------
Subject: Re: Support for st_birthtime
Date: Mon, 26 Mar 2007 11:00:53 +0200
From: Corinna Vinschen
On Mar 25 21:28, James Youngman wrote:
> On 3/25/07, Eric Blake <address@hidden> wrote:
> >And part of the joy of it being a CVS development snapshot is that I can
> >give some feedback back to the cygwin developers - what would you rather
> >have stat do when btime is not available for a given file?
> Set tv_sec to 0, and tv_nsec to UTIME_OMIT (if available) or to any
> negative number.

This is a non-issue, afaics.  Windows filetime functions always return
a creation time and I don't know filesystems which wouldn't return a
creation time.  Samba on linux for instance returns the last modification
time as creation time.

Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


reply via email to

[Prev in Thread] Current Thread [Next in Thread]