[lug] q: linux large file system support

D. Stimits stimits at comcast.net
Wed Aug 6 06:12:55 MDT 2003


karheng at softhome.net wrote:

>
> greetings...
> linux LFS didn't seem to work for me...
> lseek above 2GB space always fails.
> i don't get compile or link errors...
> nm myprog|grep 'lseek' reveals that it is indeed
> calling lseek64...
> i don't think i need O_LARGEFILE.. because most docs
> says it's only needed for 32 bit systems...
> tried it and it didn't work anyway.
> i defined _FILE_OFFSET_BITS=64 for compilation of my
> source codes. and i'm using a 64 bit version of redhat
> 7.2 with gcc 2.96 on a hp server...
> i checked and it seems defining _LARGEFILE_SOURCE &
> _LARGEFILE64_SOURCE isn't necessary on a 64 bit
> system.
> i'm only assuming that i'm using a filesystem that
> can handle large files for now... it's ext2 at least.
> any ideas?
> thanks in advance...
> rgds,
> ps: please let me know if it's offtopic... i'll post
> on linux offtopic list.. _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
>
The shell that runs the application must also support large files. You 
mentioned RH 7.2...I suspect that some shells (definitely tcsh) may not 
have had large file enabled yet at that time.

D. Stimits, stimits AT comcast DOT net




More information about the LUG mailing list