Re: [PATCH] libext2fs: fix i_blocks for extent leaf create/delete
From: Ted Ts'o <tytso@mit.edu>
Date: 2012-06-11 03:53:03
From: Ted Ts'o <tytso@mit.edu>
Date: 2012-06-11 03:53:03
On Thu, May 31, 2012 at 11:31:58AM -0700, Aditya Kali wrote:
When libext2fs allocates/deletes an extent leaf, the i_blocks value is incremented/decremented by fs->blocksize / 512. This is incorrect in case of bigalloc. The correct way here is to use cluster_size / 512. The problem is seen if we try to create a large inode using libext2fs (say using ext2fs_block_iterate3()) on a bigalloc filesystem. fsck catches this and complains. Signed-off-by: Aditya Kali <redacted>
Applied, thanks. - Ted