On 07/12/2011 02:47 PM, Peng Yu wrote: > Hi, > > $ gzip -l 28122s_2_sorted.txt.gz > compressed uncompressed ratio uncompressed_name > 1247648790 1285935835 3.0% 28122s_2_sorted.txt > > The uncompressed file size according to "gzip -l" is about 1.2GB.
This is a FAQ. The gz file format is inherently flawed, and cannot store sizes larger than 4GiB. Anything larger than that is silently wrapped back around. > However, I extracted the file. The file size is 9.2GB. I'm wondering > if there is a bug in gzip when it deals with large files. Only if you can call a design flaw a bug. There's no way to fix this short of introducing an extension to the gz file format, and even then, it would only work for implementations of gzip that understand that extension. -- Eric Blake ebl...@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature