Re: "File size limit exceeded" problem in Red Hat 8

From: C. Linus Hicks (lhicks_at_nc.rr.com)
Date: 10/27/04

  • Next message: bruce: "question.. not sure where to post..!!"
    To: General Red Hat Linux discussion list <redhat-list@redhat.com>
    Date: 27 Oct 2004 13:31:49 -0400
    
    

    On Wed, 2004-10-27 at 12:55, Jake Brown wrote:
    > Ed,
    >
    > Thanks for the reply.
    >
    > I tried # dd if=/dev/zero of=/mnt/point/foo.big bs=1024k count=3000 , and I got
    >
    > /mnt/point/foo.big no such file or directory.
    >
    > My filing system is ext3.
    >
    > I am using gcc 2.6.3 to generate the trace file, I know that gcc 2.6.3 is a very very old version, however the simulator I have in hand requires that specific version of gcc. It is possible that file manipulation functions, like fopen, fseek etc., in gcc 2.6.3 do not support file sizes greater than 2 GB. Is there a way to work it around? For example, can I compress the trace file on the fly? The syntax I am using to generate a trace file is
    >
    > ./Application_name -- -tx trace.txt
    >
    > Any ideas?

    I believe it is the system call definitions you are using and not the
    compiler. If you look in /usr/include/features.h you may see things like

    __USE_LARGEFILE64
    __USE_FILE_OFFSET64

    These defines determine the internal format of the system calls you are
    using in your program. And I believe you may have to use fopen64 rather
    than fopen.

    -- 
    C. Linus Hicks <lhicks@nc.rr.com>
    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: bruce: "question.. not sure where to post..!!"