[TriLUG] file size limit

Jeremy Portzer jeremyp at pobox.com
Fri Mar 21 13:13:30 EST 2003


Any program that wants to use files larger than 2 GB has to have the
modern glibc (should be fine with RHL 8) and needs to have large file
support compiled in.  Usually this means that the open() syscall has to
use the O_LARGEFILE flag when opening files.

You can determine if a program is using O_LARGEFILE with the "strace"
utility that watches syscalls.

For example, run "strace cp foo bar", or filter its output like this:
	strace cp foo bar 2>&1|grep foo

That will show you only the lines where it's actually trying to operate
on "foo".  On my system, the last line of output looks like this:
	open("foo", O_RDONLY|O_LARGEFILE)       = 3

This means that cp is opening the file with O_LARGEFILE and therefore
supports file greater than 2GB.

Hope this helps,
Jeremy

On Fri, 2003-03-21 at 13:02, Douglas Kojetin wrote:
> Hi Geoff-
> 
> From what I read, I need "updated" glibc packages and to compile the program for large file support?  I think RH 8.0 comes with glibc packages that would be compatible, but i'm not so sure if the program was compiled with LFS support. Unfortunately, I do not have access to the source code ... so I'll have to email the author!
> 
> We are not doing genome analysis ... but we are doing bio-related research (protein structure)!
> 
> Doug
> 
> 
> --------------
> Subject: Re: [TriLUG] file size limit
> Date: Fri, 21 Mar 2003 11:59:02 -0500
> Reply-To: trilug at trilug.org
> 
> Doug,
> I had a similar question a while back.  See if the following thread in the archives is of any help:
> http://www.trilug.org/pipermail/trilug/Week-of-Mon-20011217/thread.html#3039
> 
> BTW, any chance your friend is doing genome analysis?
> 
> -Geoff
> 
> 
> 
> _______________________________________________
> TriLUG mailing list
>     http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ:
>     http://www.trilug.org/~lovelace/faq/TriLUG-faq.html
> 
-- 
/=====================================================================\
| Jeremy Portzer       jeremyp at pobox.com       trilug.org/~jeremy     |
| GPG Fingerprint: 712D 77C7 AB2D 2130 989F  E135 6F9F F7BC CC1A 7B92 |
\=====================================================================/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://www.trilug.org/pipermail/trilug/attachments/20030321/3f4d3e4f/attachment.pgp>


More information about the TriLUG mailing list