1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-03-09 15:40:20 +00:00

add disable lazy patch for ext4

This commit is contained in:
Ycarus 2019-06-05 21:05:07 +02:00
parent 3a7f9c49e3
commit a9f369770a

View file

@ -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: