From 39cbbd698081ce7ef07826d29961244efe5b2227 Mon Sep 17 00:00:00 2001 From: JUN JIE NAN Date: Mon, 30 Sep 2013 15:41:37 +0800 Subject: [PATCH] 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 --- bin/disk-image-create | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/disk-image-create b/bin/disk-image-create index 8cc1628d7..793431b89 100755 --- a/bin/disk-image-create +++ b/bin/disk-image-create @@ -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.