[daip] FITLD 2GB limit

Eric Greisen egreisen at nrao.edu
Fri May 14 18:36:10 EDT 2004


Z.-Q. Shen writes:
 > Following your instruction, I did a check as follows. Still have no idea.

 > AIPSCC    : plus       /opt/SUNWspro/bin/cc -v -c -Xc 
 > -I/home17/vlbi/AIPS/31DEC03/INC -D_FILE_OFFSET_BITS=64 -fns -fsimple=1 
 > -xtarget=generic \
 > AIPSCC    :            /home17/vlbi/AIPS/31DEC03/SOL/PREP/ZAND.c

 > zshen% cd /usr/include
 > zshen% grep FILE_OFFSET *.h
 > aio.h:#if !defined(_LP64) && _FILE_OFFSET_BITS == 64
 > aio.h:#endif /* _FILE_OFFSET_BITS */
 > aio.h:#if defined(_LARGEFILE64_SOURCE) && !((_FILE_OFFSET_BITS == 64) && \
 > aio.h:#if defined(_LARGEFILE64_SOURCE) && !((_FILE_OFFSET_BITS == 64) && \
 > dirent.h:#if !defined(_LP64) && _FILE_OFFSET_BITS == 64
 > dirent.h:#endif /* _FILE_OFFSET_BITS == 64 */

Okay - these grep results look a lot like our system and the compile
looks good.  Our system version is

bonito<141>$ uname -a
SunOS bonito 5.8 Generic_108528-14 sun4u sparc SUNW,Ultra-2

The compiler we use is Sun's:

bonito<145>$ /opt/SW6.2/SUNWspro/bin/f77 -V       
f77: Sun WorkShop 6 update 2 FORTRAN 77 5.3 2001/05/15

but the large file support has worked for a long time on Solaris.  I
vaguely remember that there is a parameter that may still need to be
set to permit a filesystem or a disk volume to permit files > 2 Gbyte.
But I asked our Solaris expert and he does not remember this so I
could be wrong.

To check - I just wrote a task to creata file and then expand it by
sizes I gave it and this program ran well over 2 Gbytes on bonito with
no problem.

Eric Greisen






More information about the Daip mailing list