So If block size can be found in ext2 like
block_size = 1024 << super_block.s_log_block_size;
so I like to know what is s_log_block_size field. it looks like value can be 0 and should always be 0 in ext2 formatted device as in ext2 block size is 1024 so and hardcoding it in code like 1024 block_size=1024<<super_block->s_log_block_size
so I like to know what is super_block.s_log_block_size
can it always be case. In one image formatted with ext2 that I have on my system its super_block.s_log_block_size value is 0 and its normally zero. So I like to know what is the point of this le32 bit field?