resize2fs: calculate minimal fs size only once
PATCH 1/1 resize2fs: calculate minimal fs size only once
When running resize2fs -M, no need to recalculate the minimal fs size.
Signed-off-by "Peng Tao" <[email protected]>
--- resize/main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
resize/main.c +1 -1
@@ -375,7 +375,7 @@ int main (int argc, char ** argv)exit (1 ); }if (force_min_size) - new_size =calculate_minimum_resize_size (fs); + new_size = min_size;else if (new_size_str) { new_size =parse_num_blocks (new_size_str, fs->super->s_log_block_size);
Signature · 1 line
1.6.4.2.446.gbd046
Theodore Tso
AppliedQuoted 3 lines · Peng Tao
When running resize2fs -M, no need to recalculate the minimal fs size.
Signed-off-by "Peng Tao" <[email protected]>
Applied to the maint branch, thanks.
- Ted