Chinaunix

标题: [help]uncompress 为什么不能解压>2G的文件? [打印本页]

作者: llj    时间: 2011-03-21 15:52
标题: [help]uncompress 为什么不能解压>2G的文件?
本帖最后由 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
作者: llj    时间: 2011-03-21 16:20
在线等, 急 。。。


为啥用compress却可以压缩成一个大于2G的文件呢?
作者: llj    时间: 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
作者: llj    时间: 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.




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2