delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/01/22/11:53:06

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4B59D7E6.2020805@byu.net>
Date: Fri, 22 Jan 2010 09:52:54 -0700
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: futimes?
References: <1264178911 DOT 15440 DOT 1356055743 AT webmail DOT messagingengine DOT com>
In-Reply-To: <1264178911.15440.1356055743@webmail.messagingengine.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

--------------enig8F545A39F42CFE06A5187C06
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

According to Charles Wilson on 1/22/2010 9:48 AM:
> I noticed this change when reviewing libarchive development:
>=20
> "Windows resets atime at file close, so we can't use futimes() on
> Cygwin."
> http://code.google.com/p/libarchive/source/detail?r=3D1832
>=20
> Is that the expected behavior? I thought cygwin-(1.7?) took special care
> to go back and "fix up" this problem during close()...

In fact, cygwin goes to great lengths to work around this bug in the MVFS
file system (that is, duplicate the handle, set atime on the duplicate,
close it to force a flush to disk, then set atime on the original).  Which
file system was the libarchive bug reported on?  Maybe we need to reuse
the MVFS hack on other file systems.  But my experience has been that
futimes works correctly on NTFS.

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

Eric Blake             ebb9 AT byu DOT net


--------------enig8F545A39F42CFE06A5187C06
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

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

iEYEARECAAYFAktZ1+sACgkQ84KuGfSFAYDKwgCePMalY1DRcJ+JRjCEQJcxokGs
StgAn3w+qCCzZNI1mFN/k44a5faj00F8
=pLZp
-----END PGP SIGNATURE-----

--------------enig8F545A39F42CFE06A5187C06--

- Raw text -


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