revert "resize2fs: fix overly-pessimistic calculation of minimum size required" 10/143510/1 accepted/tizen_4.0_base accepted/tizen/4.0/base/20170828.221306 accepted/tizen/base/20170814.055754 submit/tizen_4.0_base/20170828.000000 submit/tizen_4.0_base/20170828.000001 submit/tizen_base/20170811.072713 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m2_release
authorYunmi Ha <yunmi.ha@samsung.com>
Thu, 10 Aug 2017 07:17:22 +0000 (16:17 +0900)
committerYunmi Ha <yunmi.ha@samsung.com>
Thu, 10 Aug 2017 07:17:22 +0000 (16:17 +0900)
commit2c71beec579035dcb31a8b1b7264ce48dc45de4f
tree347644c26cf78a290e074b0ef763ecc7b21e714f
parentf968ff78fd5939c0e890180048f19a7324139fbc
revert "resize2fs: fix overly-pessimistic calculation of minimum size required"

resize2fs: fix overly-pessimistic calculation of minimum size required

For extent-mapped file systems, we need to reserve some extra space in
case we need to grow the extent tree.  Calculate the safety margin
more intelligently, so we don't overestimate the amount of space
required.
(https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git/commit/?id=b4f30fcfe66c76a95689b9a39c229cef2446b385)

This patch increased start block for reserving margin
so it sometimes failed to resize when filesystem is very small.
(error message - resize2fs: No space left on device while trying to
 resize csc.img)

Therefore, it is only available in the extent-mapped file system.
We can't use this patch.

Change-Id: I5783fe33dd000717828a361ecb628d5750b39940
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
resize/resize2fs.c [changed mode: 0644->0755]