[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Which mkfs tool can I use for an ext3 file system??



On Thu, Nov 08, 2001 at 02:58:02PM -0700, Andreas Dilger wrote:
> > Question: Does ext3 support large file (file > 2GB)?
> 
> Yes.
> 

Ext3 (and ext2) does support large files, but you need to make sure
that your application programs are (at a minumum recompiled, or
preferably, rewritten) to use the LFS standard.  The fundamental
problem is that off_t on ia32/linux is a signed 32 bits quantity,
which limits you to 2GB files.  There is a magic #define you can use
with recent Linux glibc libraries which will redefine off_t to be 64
bits, but this can break library interfaces which happen to use off_t
in function prototypes or in library data structures.  It's better to
use the new/native LFS interfaces: open64(), read64(), lseek64(),
etc., and use the new LFS loff_t data type, if you want to be sure
that you don't accidentally break something....

						- Ted







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]