From a9f369770aabc09be3f0932a4a3ed71d0fe96adb Mon Sep 17 00:00:00 2001 From: Ycarus Date: Wed, 5 Jun 2019 21:05:07 +0200 Subject: [PATCH] add disable lazy patch for ext4 --- .../fstools/patches/100-disable-lazy-init.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 root/package/system/fstools/patches/100-disable-lazy-init.patch diff --git a/root/package/system/fstools/patches/100-disable-lazy-init.patch b/root/package/system/fstools/patches/100-disable-lazy-init.patch new file mode 100644 index 00000000..c3092570 --- /dev/null +++ b/root/package/system/fstools/patches/100-disable-lazy-init.patch @@ -0,0 +1,13 @@ +diff --git a/libfstools/rootdisk.c b/libfstools/rootdisk.c +index dd00c1b..f3b87fc 100644 +--- a/libfstools/rootdisk.c ++++ b/libfstools/rootdisk.c +@@ -270,7 +270,7 @@ static int rootdisk_volume_init(struct volume *v) + if (rootdisk_use_f2fs(p)) + snprintf(str, sizeof(str), "mkfs.f2fs -q -l rootfs_data %s", v->blk); + else +- snprintf(str, sizeof(str), "mkfs.ext4 -q -L rootfs_data %s", v->blk); ++ snprintf(str, sizeof(str), "mkfs.ext4 -q -E lazy_itable_init=0,lazy_journal_init=0 -L rootfs_data %s", v->blk); + ret = system(str); + break; + default: