From e94be0b70ed44acecc095d7b8367cf2c1e38304c Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Fri, 22 Dec 2017 02:39:44 +0800 Subject: [PATCH] Prevent creating 128M images make_ext4fs will fail creating 128M ext4 images, LOL WTF? Change it to 132M to fix this issue --- core/jni/utils/img.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/jni/utils/img.c b/core/jni/utils/img.c index 38ad78f8d..6ea192805 100644 --- a/core/jni/utils/img.c +++ b/core/jni/utils/img.c @@ -50,6 +50,8 @@ static char *loopsetup(const char *img) { } int create_img(const char *img, int size) { + if (size == 128) /* WTF...? */ + size = 132; unlink(img); LOGI("Create %s with size %dM\n", img, size); int ret;