delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/03/26/08:10:46

X-Spam-Check-By: sourceware.org
Message-ID: <c5df85930703260610i24ff9bb2i13a8d11ce63a6071@mail.gmail.com>
Date: Mon, 26 Mar 2007 14:10:23 +0100
From: "James Youngman" <jay AT gnu DOT org>
To: "Eric Blake" <ebb9 AT byu DOT net>
Subject: Re: Support for st_birthtime
Cc: "bug-findutils mailing list" <bug-findutils AT gnu DOT org>, cygwin AT cygwin DOT com
In-Reply-To: <4607BCA0.1060406@byu.net>
MIME-Version: 1.0
References: <4607BCA0 DOT 1060406 AT byu DOT net>
X-Google-Sender-Auth: d018e3130717169a
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 3/26/07, Eric Blake <ebb9 AT byu DOT net> wrote:
> 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.

Worse, it makes it impossible to ask questions like "was this file
changed since it was created?" and expect reliable answers.      On
systems which have no "birth time" you get the answer "no" when the
correct answer is "we don't know".

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

But I don't think we can do that, because it is indistinguishable from
the "file never changed" case.

James

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019