Re: [PATCH] ext4: add block bitmap validation

2007-11-21 Thread Andreas Dilger
On Nov 19, 2007 20:26 +0530, Aneesh Kumar K.V wrote: +static int ext4_valid_block_bitmap(struct super_block *sb, + struct ext4_group_desc *desc, + unsigned int block_group, + struct

[PATCH] ext4: add block bitmap validation

2007-11-19 Thread Aneesh Kumar K.V
When a new block bitmap is read from disk in read_block_bitmap() there are a few bits that should ALWAYS be set. In particular, the blocks given corresponding to block bitmap, inode bitmap and inode tables. Validate the block bitmap against these blocks. Signed-off-by: Aneesh Kumar K.V [EMAIL