[PATCH] ext2: Fix the max file size for ext2 file system.

2007-10-22 Thread Aneesh Kumar K.V
The max file size for ext2 file system is now calculated with hardcoded 4K block size. The patch fixes it to be calculated with the right block size. Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/ext2/super.c | 32 1 files changed, 28 insertions(+),

Re: [PATCH] ext2: Fix the max file size for ext2 file system.

2007-10-11 Thread Aneesh Kumar K.V
Andreas Dilger wrote: On Oct 11, 2007 20:20 +0530, Aneesh Kumar K.V wrote: + /* indirect blocks */ + meta_blocks = 1; + /* double indirect blocks */ + meta_blocks += 1 + (1LL << (bits-2)); + /* tripple indirect blocks */ + meta_blocks += 1 + (1LL << (bits-2

Re: [PATCH] ext2: Fix the max file size for ext2 file system.

2007-10-11 Thread Andreas Dilger
On Oct 11, 2007 20:20 +0530, Aneesh Kumar K.V wrote: > + /* indirect blocks */ > + meta_blocks = 1; > + /* double indirect blocks */ > + meta_blocks += 1 + (1LL << (bits-2)); > + /* tripple indirect blocks */ > + meta_blocks += 1 + (1LL << (bits-2)) + (1LL << (2*(bits-2)));

[PATCH] ext2: Fix the max file size for ext2 file system.

2007-10-11 Thread Aneesh Kumar K.V
The max file size for ext2 file system is now calculated with hardcoded 4K block size. The patch fixes it to be calculated with the right block size. Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/ext2/super.c | 32 1 files changed, 28 insertions(+),