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(+),
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
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)));
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(+),