delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/04/10/00:31:12

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1EF253858435
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1712723470;
bh=ivW5S5LrGnYNun5sA1Ac+Qq1gYU+1rKAKLQLn+f/Ey4=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=L6t/C6juBdNwBCrxa1xpx6ZHR78i913u4x6TkLvBghN7XEhJ135Rc1gBv8gUdQv5U
pLl97jjyl7pij2brYXzHfGLk0RT5VrjFUCG8wjyyBjDe+2TsD4Oejbl2udIc1r48rx
HzvcX2g82hpeBM6BK67zogxyxRfVq4AyVBjcYNtc=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 66EB43858D39
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 66EB43858D39
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712723419; cv=none;
b=D0xs8YvUUUExTbNQUgGacJY0RS7XYpPtHH/O+KjRmVXIVN9k1jWEI3Vf29iylV8Lk2oL5g3daCjxHEO/drR1mXN7SZ1PpNbUklJeRHrc2pDtBa/Jk6fLTPjYq7XUcZodJ1u4Q4mwYQONZZO6ul0hvmsyAJGkX7pgKpqxI1U5D3Q=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1712723419; c=relaxed/simple;
bh=cQyL6aQM33UI+mCL1VW2V0stzF8/JN6W+Hi9rh0Ep+Y=;
h=Message-ID:Date:MIME-Version:Subject:To:From;
b=nMl4U/OOfk0k3CZDZl29Q/fuixvAXI0CGwVTySC+lSNmC3930VNr/Jm9pysY32q37AlIS4/x1lZmBb2SCY/Me7fiy4RS8iwEjrF6LuWxK6ME1taJ5It2k2kR+Ih3Y5h90idvs+DoCBtvkuV/q2enVEnvz0zsyNEyVQVnefuCJlI=
ARC-Authentication-Results: i=1; server2.sourceware.org
Message-ID: <5f0672aa-a33b-45fb-8ec6-826ad586bb66@SystematicSW.ab.ca>
Date: Tue, 9 Apr 2024 22:30:07 -0600
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Win32 FILE_BASIC_INFORMATION.*Time.QuadPart - which value should
be used if filesystem does not support it,
so Cygwin /usr/bin/stat lists the value as '-'?
To: cygwin AT cygwin DOT com
References: <CANH4o6O=kbNTptDMNOvg6+HBYTufNgv_71Be2Fn6E3w7+qprVg AT mail DOT gmail DOT com>
<CANH4o6NzSLKG3TQt6H9+kbn6aW66G0XASwjrTrBc-JVEcvss9g AT mail DOT gmail DOT com>
<ZhWvznls2pyLd_YR AT calimero DOT vinschen DOT de>
Organization: Systematic Software
In-Reply-To: <ZhWvznls2pyLd_YR@calimero.vinschen.de>
X-Rspamd-Queue-Id: 798612000D
X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,
SPF_PASS, TXREP,
UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6
X-Rspamd-Server: rspamout08
X-Stat-Signature: j4yncnf6ar53bqme8azjnfuz4qafn8wx
X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361
X-Session-ID: U2FsdGVkX1/Mw4ucY6JxbvZiZgZBV9H2ZUBePiU+Dco=
X-HE-Tag: 1712723408-205671
X-HE-Meta: U2FsdGVkX190l2zH1RMlhJ0/zRKyyBACHSPO45IfOTFCbdgo8SuyO6S4D9CsonPgb6EU0FwY6UImrYcHQ95fbj03r5OqQl6dmQ1Z8pvLUktHgc3F+85oZiRlvSTUvqB9wKIhcBH2e/IGKE11w0PMiT1MEo3SBswurSz3ZbG+gtsnJk/BBlx51aZuqsrkJagilAlKW23IioZClwODrqGCiqQMtf0t1vZu1p/57NOm5Mo+Qr4aFMRdSil5hBkm6Y8n/DNaUt0lIPYBI0xneeLcc3T+j2NrAxeNmh0UCMevOxZRkqqDyGZ3VJ4quuDEyX8RNwUZiX0OV/p8fMvXqIsyvQmsA3vd5A+G2dIcONTYvFC3dUM8X5i6uAmKW6z/rkSCiI1W3yUgUSp0Tev1zBNfEYkH0XuTY9hyGSEbNyML9+I=
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Brian Inglis via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Brian Inglis <Brian DOT Inglis AT SystematicSW DOT ab DOT ca>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 43A4VCZp717587

On 2024-04-09 15:14, Corinna Vinschen via Cygwin wrote:
> On Apr  5 04:26, Martin Wege via Cygwin wrote:
>> On Fri, Apr 5, 2024 at 2:05 AM Martin Wege <martin DOT l DOT wege AT gmail DOT com> wrote:
>>> I have problems with debugging, so a quick help would be appreciated,
>>> as I cannot figure this out after several hours of digging.
>>>
>>> Cygwin /usr/bin/stat returns "Birth: -" for some files. Which value
>>> must the CreationTime member of FILE_BASIC_INFORMATION have to cause
>>> /usr/bin/stat ti return "-"? 0, -1, or something else?
>>
>> In a related matter:
>> The Win32 FILE_BASIC_INFORMATION structure defines four time values:
>>
>> LARGE_INTEGER CreationTime;
>> LARGE_INTEGER LastAccessTime;
>> LARGE_INTEGER LastWriteTime;
>> LARGE_INTEGER ChangeTime;
>>
>> How can a filesystem indicate if it does not support a particular
>> timestamp, such as ChangeTime? Should ChangeTime.QuadPart then be -1,
>> -2 or 0, or another value?
> 
> I'm not aware of a filesystem not supporting ChangeTime, that is,
> st_ctime.  Usually only CreationTime (st_birthtime) is missing.

R/O media like CD/DVD-R or FS w/o write support?

> I think setting the timestamp to 0 works for indicating that this kind
> of timestamp is not supported.  Cygwin is handling Windows timestamps
> this way, but I can't find this in documentation ATM.

See upthread?:

Caller or application can set 0 to mean keep/return current value, caller or 
driver can set -1 to mean don't update/return current value:

https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/ns-wdm-_file_basic_information#remarks

> But the FS driver can also just fill the CreationTime field with the
> same value as LastWriteTime or ChangeTime.  MSFT NFS does that.
-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer     but when there is no more to cut
                                 -- Antoine de Saint-Exupéry


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

- Raw text -


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