V*****y 发帖数: 26 | 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 | c*r 发帖数: 278 | 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
| V*****y 发帖数: 26 | 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
|
|