# Re: \[PATCH\] resize2fs: Calculate s\_first\_data\_block into minimum filesystem size

- From: Ted Ts'o \<tytso@mit.edu\>
- Date: 2012-02-15 23:41:51 
- List: linux-ext4
- Page: https://ratatoskr.run/linux-ext4/2012/02/13414216
- Thread: https://ratatoskr.run/linux-ext4/2011/12/13413541/t.md

```text
On Thu, Dec 08, 2011 at 03:09:09PM +0100, Jan Kara wrote:
> calculate_minimum_resize_size() forgot to account s_first_data_block
> into minimum filesystem size. Thus in case the size of filesystem was
> such that the last group had the minimal size (50 blocks + metadata
> overhead), the code in adjust_fs_info() decided the group is unneeded,
> removed it, and in some cases the resizing then failed with ENOSPC.
> 
> Fix the issue by properly accounting for s_first_data_block in
> calculate_minimum_resize_size().
> 
> Signed-off-by: Jan Kara <jack@suse.cz>

Thanks, applied.

						- Ted
```
