I'm running ext3 under linux 2.6.x.
By default, what is the maximum file size? Where is this adjusted? I can't find it in the kernel config so is it a /proc setting?
Thanks,
On Mon, 19 Jul 2004, John Lange wrote:
I'm running ext3 under linux 2.6.x.
By default, what is the maximum file size? Where is this adjusted? I can't find it in the kernel config so is it a /proc setting?
2 TB with 4k blocks.
I don't believe this is adjustable.
--- Michael J. Dikkema, CCNP, CCIP Senior Systems Engineer - Qanda Networks mjd@moot.ca
Thank you Michael.
A posting I found from May 2003 indicates that applications need to be compiled with LFS API support for files larger than 2G.
"Using the LFS API is pretty straightforward; it can be as simple as adding -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE to the C compiler options and recompiling."
So I assume this is: CFLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" ./configure
Does anyone know if this tip also applies when compiling the kernel itself or just to applications?
Is there a way to set this as a default option for all compiles so that I don't have to remember every time I compile something?
And finally, is there a way to see if a binary has been compiled with LFS? Something like "ldd" perhaps?
Thanks,
John
On Mon, 2004-07-19 at 05:54, Michael J. Dikkema wrote:
On Mon, 19 Jul 2004, John Lange wrote:
I'm running ext3 under linux 2.6.x.
By default, what is the maximum file size? Where is this adjusted? I can't find it in the kernel config so is it a /proc setting?
2 TB with 4k blocks.
I don't believe this is adjustable.
Michael J. Dikkema, CCNP, CCIP Senior Systems Engineer - Qanda Networks mjd@moot.ca _______________________________________________ Roundtable mailing list Roundtable@muug.mb.ca http://www.muug.mb.ca/mailman/listinfo/roundtable
"Using the LFS API is pretty straightforward; it can be as simple as adding -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE to the C compiler options and recompiling."
So I assume this is: CFLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" ./configure
Never tried it this way, I usually edit the Makefile.
Does anyone know if this tip also applies when compiling the kernel itself or just to applications?
Only applications. It's been 3 years since I last did this. I believe I had to patch glibc at one point, too. How old is this install and what distro was it based on?
And finally, is there a way to see if a binary has been compiled with LFS? Something like "ldd" perhaps?
I believe you can use nm to find the symbols that it's dropped in, but I forget what they are. Compile it with large file support, and again without. | cut | sort | uniq | diff to find them. :)
You could also strace | grep open and look for O_LARGEFILE
--- Michael J. Dikkema, CCNP, CCIP Senior Systems Engineer - Qanda Networks mjd@moot.ca