Increase journal size to 64 M for ext4 file system

the problem is that the journal isn't large enough to allow online
resizing. Solution is straight forward. So the file system can be
resized successfully to disk size specified in flavor.

Fixes bug #1233008

Change-Id: Ie84fb8aea8d334706574d1a8006ec9eaee5bb5be
This commit is contained in:
JUN JIE NAN 2013-09-30 15:41:37 +08:00
parent 4a751ba162
commit 39cbbd6980

View File

@ -137,7 +137,9 @@ else
truncate -s${_NEEDED_SIZE}K $TMP_IMAGE_PATH
if [ "$FS_TYPE" = "ext4" ] ; then
# Very conservative to handle images being resized a lot
MKFS_OPTS="-i 4096"
# Without -J option specified, default journal size will be set to 32M
# and online resize will be failed with error of needs too many credits.
MKFS_OPTS="-i 4096 -J size=64"
fi
fi
# allow up to 1PB of 4KB blocks.