Re: File Size Limit Exceeded - How to handle work around this?



In article <1166037891.883289.95100@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,
eastcoastguyz <eastcoastguyz@xxxxxxxxxxx> wrote:
I wrote a simple program to continue to create a very large file (on
purpose), and even though there is plenty of disk space on that device
the program aborted with the error message "File Size Limit Exceeded".
The file size was 2147483647. I checked ulimit -a and its set to
unlimited.

Is this a compiler issue?

Probably not.

I would like to see a C code example of how
to increase the limit or make it unlimited (if that is a wise thing to
do).

It is probably an operating system limitation (or a disk quota
limitation). ulimit (which is not part of C) with -a set to
unlimited, just means that the operating system will allow you to
write files as big as is supported by that particular file system.

Whether your operating system supports larger files at all would
be OS specific, as would be any special means to create such files.
This is a matter that should be taken to a resource that deals
with your specific OS. It is -possible- that they will tell you
there to change some flags to your compiles, but that would be
for deep OS implementation reasons, not for reasons directly related
to standard C.
--
If you lie to the compiler, it will get its revenge. -- Henry Spencer
.



Relevant Pages

  • Re: check disc space
    ... > doesn't give the free diskspace on any platform I have access to...) ... > on a modern operating system; it's hardly ever useful for anything except ... of no disk space check. ... When you are performing 4gb deduplication runs on a cluster, ...
    (comp.lang.python)
  • Re: Keyboard
    ... cents worth of disk space. ... With almost no exceptions, every new version of any operating system, ... that extra functionality takes more ... Microsoft MVP - Windows Desktop Experience ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Keyboard
    ... cents worth of disk space. ... With almost no exceptions, every new version of any operating system, ... that extra functionality takes more ... my point is that measuring what you call "bloat" in ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Problem with Windows!
    ... No problem installing printers on Windows. ... buy a new computer with the latest MS operating system. ... require more disk space. ...
    (alt.os.linux)
  • Re: Problem with Windows!
    ... No problem installing printers on Windows. ... buy a new computer with the latest MS operating system. ... require more disk space. ...
    (alt.os.linux.suse)