[KLUG Members] Re: file size limit
Peter Buxton
members@kalamazoolinux.org
Tue, 17 Sep 2002 07:57:57 -0400
On Mon, Sep 16, 2002 at 03:06:09PM -0400, John Pesce wrote:
> I have an ext3 filesystem on my server. It won't let me make a tar file
> larger than 2G. Before I switched to ext3 I was using ext2 and often would
> tar up my home directories into a 23G-ish file.
> Why won't it let me now?
Maybe they compiled ext2 with different values.
From linux-2.4.19/fs/ext3/super.c:
#define log2(n) ffz(~(n))
/*
* Maximal file size. There is a direct, and {,double-,triple-}indirect
* block limit, and also a limit of (2^32 - 1) 512-byte sectors in
* i_blocks.
* We need to be 1 filesystem block less than the 2^32 sector limit.
*/
static loff_t ext3_max_size(int bits)
{
--
http://www.killdevil.org/~peter
[The Basement Tapes were] like the Watergate tapes... Bob
would say, 'We should destroy this.' -- Robbie Robertson