resize2fs: fix up minimum size calculations
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | resize2fs: fix overly-pessimistic calculation of minimum size requiredresize/ | +26 | 0 replies | |
| 2/2 | resize2fs: refine minimum required blocks for flex_bg file systemsresize/ tests/ | +59 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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