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: Is tar -cjf deterministic?


> I've noticed more than once that when I recreate a bzip2'ed tar archive on
> cygwin, the file length is slightly different.  Yet it expands into the same
> directory tree (as determined by recursive diff).
> 
> Is there something nondeterministic about tar and bzip2 on cygwin?  If so, is
> it unique to cygwin?

Not unique to cygwin - file timestamps are preserved in tar, and
when the timestamps change, the compression dictionary changes,
hence leading to different compression ratios.

--
Eric Blake
volunteer cygwin tar maintainer



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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