config: ext4: increase x86 rootfs size for online resize #1669
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ext4 online resize on x86 rootfs fails unless the rootfs size is set to 2 GB or larger,
this is very inconvenient because the only way to increase
filesystem size is to do it with the filesystem unmounted.
This is an example of the error when I try to resize it when mounted from my PC
(this is the same error I get also in OpenWrt)
alby@openSUSE-xeon:/> sudo resize2fs /dev/sdd2
resize2fs 1.44.4 (18-Aug-2018)
Filesystem at /dev/sdd2 is mounted on /run/media/alby/57f8f4bc-abf4-655f-bf67-946fc0f9f25b; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 1
resize2fs: Invalid argument While checking for on-line resizing support
This commit restores commit dc6cc04
which was reverted later in commit 4cc1f1a
imho (also reading the description) the revert was a mistake.
"2 GB is overkill and was only added to allow unlimited ext4 resizing,
which is a pretty rare use case. "
That commit was not about allowing unlimited resizing.
The issue here is that online resize does not work
unless the filesystem size is 2GB or more,
or maybe if we change the block size instead.
Signed-off-by: Alberto Bursi alberto.bursi@outlook.it