X-Recipient: archive-cygwin@delorie.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@byu.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@cygwin.com
Subject: Re: futimes?
References: <1264178911.15440.1356055743@webmail.messagingengine.com>
In-Reply-To: <1264178911.15440.1356055743@webmail.messagingengine.com>
Content-Type: multipart/signed; micalg=pgp-sha1;  protocol="application/pgp-signature";  boundary="------------enig8F545A39F42CFE06A5187C06"
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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@byu.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--
