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
Reply to
Jan Kara, 2011-12-08
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
Thread (2 messages) 2 messages, 2 authors, last reply 2012-02-15
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help