delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4D2C7024.8090507@redhat.com> |
Date: | Tue, 11 Jan 2011 07:58:44 -0700 |
From: | Eric Blake <eblake AT redhat DOT com> |
User-Agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Strange fstatat / stat behavour on directories causing tar "file changed as we read it" error |
References: | <3501944D149644D394474781054F5E98 AT multiplay DOT co DOT uk> <4D2783A3 DOT 5000008 AT redhat DOT com> <D43AAA42D53E47AF958054385DAEFB50 AT multiplay DOT co DOT uk> <4D27C896 DOT 30202 AT cygwin DOT com> <265F601A437E4A03BE8C665BE7470721 AT multiplay DOT co DOT uk> <4D27D66F DOT 8030201 AT cygwin DOT com> <4D28F1AC DOT 1070907 AT laposte DOT net> <20110111095435 DOT GF3413 AT calimero DOT vinschen DOT de> |
In-Reply-To: | <20110111095435.GF3413@calimero.vinschen.de> |
OpenPGP: | url=http://people.redhat.com/eblake/eblake.gpg |
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 |
--------------enig8D86BECFB3C005B3B2C7E44D Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 01/11/2011 02:54 AM, Corinna Vinschen wrote: > I can not reproduce the effect, at least not on W7, but apparently it > happens on some systems. So, given that the directory size is > irrelevant for all practical purposes anyway, and given that there's no > application which has problems with a directory size of 0, should Cygwin > just always set st_size to 0 for directories? Independent of the > underlying FS? Always returning 0 size for all directories, regardless of FS, is certainly the simplest workaround. I'd say go for it. --=20 Eric Blake eblake AT redhat DOT com +1-801-349-2682 Libvirt virtualization library http://libvirt.org --------------enig8D86BECFB3C005B3B2C7E44D 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.11 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJNLHAkAAoJEKeha0olJ0NqEysH/iUBTI2I9rf2O2qREsiq6CHV RslUEZP1UHmzsthBiJBmShuXnrAxFvIPkj1EkhdtSz+CJYu9Hu9gdJFqdU7pmfK3 APtiwaTjy/Wlzagu1wfzroZkSJoPyEuldfyDJrnc3OB/iAvJChX1tWbmf7P3i8k3 UhPVG9EXlf1bu4BlXTPr1btahuJl9NFtyHaxyZTrVZr3gJ/kHfMUHO4MbgvnXRna NP9Dp2wh+vysH/zBN8BjuDOItxD1K8dXFLwhSR1JTnwJnOaNI8JKI2087UvCMgQJ bt7d9ScY//rt+zroW64SSDC7ewRVLTNF3BTkRHxN/zM5QfBoUfj6NaoHDKaVkAg= =iFCx -----END PGP SIGNATURE----- --------------enig8D86BECFB3C005B3B2C7E44D--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |