xfs
[Top] [All Lists]

Re: encounter a 4 GB file size limit

To: Todd Raeker <raeker@xxxxxxxxx>
Subject: Re: encounter a 4 GB file size limit
From: Steve Lord <lord@xxxxxxx>
Date: 06 Nov 2001 08:37:52 -0600
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <01110609373300.01912@chemraeker1>
References: <01102909435902.11332@chemraeker1> <3BDD8E31.9C817A5@xxxxxxxxxxxx> <01110609373300.01912@chemraeker1>
Sender: owner-linux-xfs@xxxxxxxxxxx
>From the man page of the open system call:

       O_LARGEFILE
              On 32-bit systems that support the Large Files Sys­
              tem,  allow files whose sizes cannot be represented
              in 31 bits to be opened.

I am not sure how you get this down to the open call with fortran, but
you can use the strace command to see it going into the kernel:


open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3

Steve


On Tue, 2001-11-06 at 08:37, Todd Raeker wrote:
> O.K. everyone.  
> 
> It appears I do not know what I am doing with respect to enabling large files 
> in my fortran code.  I am using g77 and just writting into an unformatted 
> file.  I use -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE as 
> command line options.  There must also be an option in the open statement 
> that sets up the correct file characteristics but I cannot find it anywhere.  
> I see the way to do it using gcc but not g77.  Any suggestions?
> 
> Thanks
> 
> Todd.
> 
> -- 
> Todd Raeker
> Department of Chemistry
> University of Michigan
> (734) 647-2867 Phone
> (734) 615-6950 FAX
-- 

Steve Lord                                      voice: +1-651-683-3511
Principal Engineer, Filesystem Software         email: lord@xxxxxxx


<Prev in Thread] Current Thread [Next in Thread>