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:
parent
4a751ba162
commit
39cbbd6980
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user