免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1928 | 回复: 3
打印 上一主题 下一主题

[help]uncompress 为什么不能解压>2G的文件? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-03-21 15:52 |只看该作者 |倒序浏览
本帖最后由 llj 于 2011-03-21 16:29 编辑

/ on /dev/dsk/c0d0s0 read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=1900000  -- 已经启用了支持大文件

ls -lrth 1.Z   

----- 2.6G

uncompress 1.Z

ls -lrt h 1                    ------------ 此文件应该是要大于2.6G

------- 2.0 G

谁能帮忙解答一下,此文件系统是ufs, os 是solaris10

ulimit -a

都是unlimited

论坛徽章:
0
2 [报告]
发表于 2011-03-21 16:20 |只看该作者
在线等, 急 。。。


为啥用compress却可以压缩成一个大于2G的文件呢?

论坛徽章:
0
3 [报告]
发表于 2011-03-21 17:20 |只看该作者
补充一点信息:

Large file aware utilities
     A utility is called large file aware if it can process large
     files  in  the same manner as it does small files. A utility
     that is large file aware is able to handle  large  files  as
     input and generate as output large files that are being pro-
     cessed.

The following /usr/bin utilities are large file aware:

     adb           awk           bdiff         cat           chgrp
     chmod         chown         cksum         cmp           compress
     cp            csh           csplit        cut           dd
     dircmp        du            egrep         fgrep         file
     find          ftp           getconf       grep          gzip
     head          join          jsh           ksh           ln
     ls            mdb           mkdir         mkfifo        more
     mv            nawk          page          paste         pathchck
     pg            rcp           remsh         rksh          rm
     rmdir         rsh           sed           sh            sort
     split         sum           tail          tar           tee
     test          touch         tr            uncompress    uudecode
     uuencode      wc            zcat

论坛徽章:
0
4 [报告]
发表于 2011-03-22 14:18 |只看该作者
貌似不是compress/uncompress的问题。

原始文件,1 是一个pkg文件, 在没压缩之前, 此文件就是2个G大小。

查了一下, 是solaris早期版本对pkg command有此bug

http://bugs.opensolaris.org/bugd ... g.do?bug_id=6514450
Bug ID        6514450  
Synopsis    Complete 64-bit support for all pkg commands needed


还有一个问题是, 为什么经过压缩以后, pkg文件反而变大了呢?  即 1.Z 为2.6G,  而初始 1 为2G.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP