[lug] q: linux large file system support

karheng at softhome.net karheng at softhome.net
Mon Aug 4 03:03:30 MDT 2003


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.. 



More information about the LUG mailing list