File size limit exceeded
I'm getting a "File size limit exceeded" while compiling a program. It appears that it is writing a .ogg file which is several GB in size. When it gets to 2GB it dies with that error message.
I have some files as large as 5GB on this box. So I know it is possible. I found some posts on this forum about checking ulimit and limits.conf. However everything seems to be in order. Code:
[strycat@catbox /tmp]$ulimit -a Can anyone help me? Thanks in advance. |
Could you please tell us which compiler/version/etc.
Just a thought. It might be that your compiler (which is writing the file) has a little bug. Normally when you would write a file you write it in blocks using a loop. You keep a counter or something simular. (It could also be the write itself). When that counter (or any other involved variable) is a 32 bit Integer then it can not go beyond 2Gb. (Number of bytes is bigger then the integer variable can hold) So, check the compiler and maybe even you program you are compiling. By the way............... What compiler writes 2Gb files?, What are you compiling, new spaceshuttle software? by .ogg do you mean a media file? |
Silly question: are the 5 GB files on the same type of file system?
|
All times are GMT -5. The time now is 04:19 PM. |