Redian新闻
>
Help please: 2GB limit on file size
avatar
Help please: 2GB limit on file size# Unix - 噫吁兮,危乎高哉
V*y
1
Hello everyone,
I encountered a 2GB limit file size problem recently. The OS is solaris 9,
according to the references I read, it should support writing to files > 2GB.
But somehow when I tried to write to a file > 2GB in my program written in
C++, the system gave me a bus error. However, I tried to concatenate two files
each with a size slightly < 2GB, it worked. I mean suppose I have two files,
file1 and file2. I issued the following command:
cat file1 file2 > newfile
And the newfile was creat
avatar
c*r
2
"cat" is largefile-aware, but your program is not.
You have to create a largefile-aware program.
Refer to http://access1.sun.com/technotes/01364.html

【在 V*****y 的大作中提到】
: Hello everyone,
: I encountered a 2GB limit file size problem recently. The OS is solaris 9,
: according to the references I read, it should support writing to files > 2GB.
: But somehow when I tried to write to a file > 2GB in my program written in
: C++, the system gave me a bus error. However, I tried to concatenate two files
: each with a size slightly < 2GB, it worked. I mean suppose I have two files,
: file1 and file2. I issued the following command:
: cat file1 file2 > newfile
: And the newfile was creat

avatar
V*y
3
Thanks a lot!
I think that's exactly what I need to read.

2GB.
files
files,

【在 c*r 的大作中提到】
: "cat" is largefile-aware, but your program is not.
: You have to create a largefile-aware program.
: Refer to http://access1.sun.com/technotes/01364.html

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。