This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Strange fstatat / stat behavour on directories causing tar "file changed as we read it" error


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.

-- 
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]