Large File Support for RedHat Linux 8.0 Kernal 2.4.18-14
Joe Griffin
joe.griffin at mscsoftware.com
Fri Jun 13 17:25:43 EDT 2003
My RedHat 8.0 system writes files larger than 8 Gb.
everest <106> cat bigwrite.f
program bigwrite
integer buf(1024)
do i=1,1024
buf(i)=i
enddo
open( unit=21, access='direct', form='unformatted',
1 status='unknown', recl=4096, err=700 )
irec=1
c do i=1,524288
c do i=1,2*524288
do i=1,4*524288
irec=i
c write(6,*) 'writing, irec =', irec
write(21, rec=irec, err=800) buf
enddo
write(6,*) 'write done, irec =', irec
close( unit=21 )
stop
700 continue
write(6,*) 'open err'
stop
800 continue
write(6,*) 'write err, irec=', irec
close( unit=21 )
end
everest <107> ifc bigwrite.f
program BIGWRITE
26 Lines Compiled
everest <108> a.out
write done, irec = 2097152
everest <109> ls -ltr fort.21
-rw-r--r-- 1 jjg develop 8589934592 Jun 13 14:27 fort.21
My file system is ext2.
Regards,
Joe Griffin
Steve Elliot wrote:
>Our RedHat 8.0 doesn't seem to support Large file
>system out of the box. We have a testing program
>running on an ext3 file system, with both
>_LARGEFILE_SOURCE and _FILE_OFFSET_BITS=64 defined,
>the lseek() function failed when the file pointer goes
>beyound 2G. What's the steps to turn the large file
>support on? and how do I know it is on?
>
>__________________________________
>Do you Yahoo!?
>Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
>http://calendar.yahoo.com
>_______________________________________________
>Beowulf mailing list, Beowulf at beowulf.org
>To change your subscription (digest mode or unsubscribe) visit http://www.beowulf.org/mailman/listinfo/beowulf
>
>
>
>
_______________________________________________
Beowulf mailing list, Beowulf at beowulf.org
To change your subscription (digest mode or unsubscribe) visit http://www.beowulf.org/mailman/listinfo/beowulf
More information about the Beowulf
mailing list