Skip to content

resize2fs: fix up minimum size calculations

Theodore Ts'o linux-ext4 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2resize2fs: fix overly-pessimistic calculation of minimum size requiredresize/resize2fs.c+26 -100 replies
2/2resize2fs: refine minimum required blocks for flex_bg file systemsresize/resize2fs.c tests/scripts/resize_test+59 -390 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2 -v2] resize2fs: fix up minimum size calculations

The second patch fixes up situations where the flex_bg calculations were being over-optimistic. We now assume that all of the metadata blocks in the last flex_bg must be counted as overhead, since they can't be used while we are shrinking the file system (so we can more easily recover if resize2fs aborts for some reason).

I did say that fixing this was low priority, but why it was failing was nagging at me, and I finally figured out what needed to be fixed. :-)

Theodore Ts'o (2):
resize2fs: fix overly-pessimistic calculation of minimum size required
resize2fs: refine minimum required blocks for flex_bg file systems

 resize/resize2fs.c        | 106 +++++++++++++++++++++++++++++-----------------
 tests/scripts/resize_test |  22 ++++++----
 2 files changed, 82 insertions(+), 46 deletions(-)
Signature · 1 line
1.9.0