Welcome to Intel® Software Network Quick Login | Join | Help |
Search in Intel® Software Network Forums
in Go

fopen on LARGEFILE is failing on one system, but not another

Last post 07-02-2008, 9:18 AM by Igor Levicki. 1 replies.
Sort Posts: Previous Next
 07-01-2008, 1:27 PM 30258034  

fopen on LARGEFILE is failing on one system, but not another

I have a Fortran/C++ program doing a fopen call that seems to be behaving differently on two machines.  The file is about 2.9GB big.

First machine (works)

OS: SuSE Linux 9.0 (x86-64) - Kernel \r (\l)
uname -a: Linux system_old 2.6.16-20-smp #1 SMP Wed Mar 26 18:02:05 CET 2008
x86_64 x86_64 x86_64 GNU/Linux

Filesystem type is RiserFS

fp = fopen( "filename", "r");
(strace output)
[pid  5326] open("filename", O_RDONLY) = 3

fp is NOT null

Second machine (fails)

Redhat Enterprise (Clone): CentOS release 5 (Final)
uname -a: Linux system_new 2.6.18-53.1.14.el5 #1 SMP Wed Mar 5 11:37:38 EST
2008 x86_64 x86_64 x86_64 GNU/Linux

Filesystem type is EXT3 (largefile is enabled according to tune2fs)

fp = fopen( "filename", "r");
(strace output)
[pid  5520] open("filename", O_RDONLY) = -1 EFBIG (File too
large)

fp is NULL

Unfortunately this is a on a customers machine, and I am unable to reproduce it locally.   It seems to be related to the system, but I was hoping someone has a suggestion for a work around.

Thanks!
Jesse Brockmann
 
 07-02-2008, 9:18 AM 30258125 in reply to 30258034  

Re: fopen on LARGEFILE is failing on one system, but not another

Have you tried static linking?


Regards,
Igor Levicki
http://www.levicki.net/
 
View as RSS news feed in XML

Shortcuts


Tags For This Post

...

Community Tags

...