X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D3F753861012 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1602165006; bh=l4NbnCL1GtAAHd4hm/AsvmTCBkVD4Wb8B1LEcfvs+PE=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=eR2RweAn/xE3gXfXxk3dbjsoAMoPokm/LZacaGE9e8L6Vg8sRyo0ADeUX5pX+EV+c qmSfs+NUWKLIcp70UFOMv5pjjzSHbhlg3u9VQn4dgSkRORysQNVonZzPT23ukYIn7U kVX7PLV74bM0k4C/zk0K+4lJ/q7411Wb0GUACQ6Q= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9B94E3857C70 X-MC-Unique: v82NFLDbN5e-zNjpiuicqg-1 Subject: Re: Is it possible to alter Birth time? To: Fergus Daly , "'cygwin AT cygwin DOT com'" References: Autocrypt: addr=eblake AT redhat DOT com; keydata= mQENBEvHyWwBCACw7DwsQIh0kAbUXyqhfiKAKOTVu6OiMGffw2w90Ggrp4bdVKmCaEXlrVLU xphBM8mb+wsFkU+pq9YR621WXo9REYVIl0FxKeQo9dyQBZ/XvmUMka4NOmHtFg74nvkpJFCD TUNzmqfcjdKhfFV0d7P/ixKQeZr2WP1xMcjmAQY5YvQ2lUoHP43m8TtpB1LkjyYBCodd+LkV GmCx2Bop1LSblbvbrOm2bKpZdBPjncRNob73eTpIXEutvEaHH72LzpzksfcKM+M18cyRH+nP sAd98xIbVjm3Jm4k4d5oQyE2HwOur+trk2EcxTgdp17QapuWPwMfhaNq3runaX7x34zhABEB AAG0HkVyaWMgQmxha2UgPGVibGFrZUByZWRoYXQuY29tPokBOgQTAQgAJAIbAwULCQgHAwUV CgkICwUWAgMBAAIeAQIXgAUCS8fL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Fyb+NjRkuqOoHeEZg+gKeXvAAqNZUjD306Rs15beGkZAX72zQnzbEIpC2c xWAy20ICgQN9wQ3lerzSfQo9EoBBjpGMnneCOgG1NJCMtYRwJta+vrAJxHSCo3B4t8Vh/1D6 2VuX5TPCqqNeDkw5CPRLZQARAQABiQEfBBgBCAAJBQJLx8lsAhsMAAoJEKeha0olJ0NqtN8I AJkRRg3l83OfDV9Daw4o1LtM8dy57P6mfVa5ElmzWQRY6Vimni9X3VXhOEwxpiOZkUSLErY0 M3NkfW/tlQVIZQKmNZwIgQ79EJ7fvXC4rhCAnlMJcpeNmHcKZmNBC3MufrusM5iv48a2Dqc1 yg8C6uZOF/oZhrkjVlgDd4B4iapiWT5IRT1CKM2VAnhHO+qUvyFDe9jX6a2ZhQ6ev0A4wxbX 0t/Wx0llylWVG6mjD6pY/8+lIJNNu/9xlIxx6/FpHi9Xs1nqWA2O1kqF8H6AC9lF2LDAK/7l J3EipX47wK4bHo9EuM26optmWOkvGkVsPeCd20ryUfjcG7N+Bj0w+D4= Organization: Red Hat, Inc. Message-ID: Date: Thu, 8 Oct 2020 08:49:57 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Eric Blake via Cygwin Reply-To: Eric Blake Content-Type: multipart/mixed; boundary="===============3729678753051420183==" Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============3729678753051420183== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="vYkF7bOUZDHJe5gZL80h4EOBsCJ2mqOkN" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --vYkF7bOUZDHJe5gZL80h4EOBsCJ2mqOkN Content-Type: multipart/mixed; boundary="C6AxwhKpmpfyjKDpPB7y6XSSgz52otl6I"; protected-headers="v1" From: Eric Blake To: Fergus Daly , "'cygwin AT cygwin DOT com'" Message-ID: Subject: Re: Is it possible to alter Birth time? References: In-Reply-To: --C6AxwhKpmpfyjKDpPB7y6XSSgz52otl6I Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 10/8/20 4:33 AM, Fergus Daly via Cygwin wrote: > In Cygwin (and on some, not all, Linux file systems) the command > $ stat filename > shows all of Access, Modify, Change and Birth times of a file. > The command > $ touch [options] filename > will alter some or all of Access, Modify, Change times, as specified > in [options]. > Is it possible in Cygwin (or for that matter in Windows) to alter the > Birth time of a file or directory? Not short of deleting the file and creating a new one in its place, and even then, the birthtime is controlled by the current system clock and not something you can modify after the fact. And that answer is identical to what you have on BSD or Linux, on file systems that support birth time there. And actually, touch can't modify the change time of a file to anything other than the current time; it is only access and modify times that can be set arbitrarily. (If you REALLY want to modify birth and change times, and have superuser access, you can open the raw block device and flip bits behind the file system's back - but that's not something you want to be doing on a regular basis, nor should you attempt it while a file system is mounted on that block device) --=20 Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org --C6AxwhKpmpfyjKDpPB7y6XSSgz52otl6I-- --vYkF7bOUZDHJe5gZL80h4EOBsCJ2mqOkN Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEccLMIrHEYCkn0vOqp6FrSiUnQ2oFAl9/GQUACgkQp6FrSiUn Q2rhKwgAlj86WMRN8vz6hJ27SJCz3oACUE7gD+1u+3Xb51hHo9oElBD/u40yDcY5 QxvEx8DVPfHjsEEoj8Pz5h/r3cRar864Mr685CDw5GDRM4imfxrY040wFJEkPJ9Y Xvwo97BPayKVZ0YW7nMeuYqM+K+pTrYxEUpLTNlRX036pvm5M7w0Ju2k08C6pkFI ybvywAONB0jXqM48L6rcIRCEc5twymxL/4eD4WDmxT8llqPw7Ga5F9FKaIyMhogL FtkmuNnCdn5hNbaU3RLH0oPY5u8eHw59fVVOaGzrLoccRc6ArVgmUFACulsrMaDX bYtIoMmJmmepoYd5Dsv/laxQsDjDzg== =2eSa -----END PGP SIGNATURE----- --vYkF7bOUZDHJe5gZL80h4EOBsCJ2mqOkN-- --===============3729678753051420183== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- 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 --===============3729678753051420183==--