From ded6de12fc8ca2a164750ef105352ba056133ece Mon Sep 17 00:00:00 2001 From: CN_SZTL Date: Fri, 16 Aug 2019 13:26:09 +0800 Subject: [PATCH] fstools: block-mount: fix restart of fstab service --- package/system/fstools/Makefile | 2 +- package/system/fstools/files/fstab.init | 4 ++++ .../fstools/patches/100-disable-lazy-init.patch | 13 ------------- 3 files changed, 5 insertions(+), 14 deletions(-) mode change 100755 => 100644 package/system/fstools/Makefile delete mode 100755 package/system/fstools/patches/100-disable-lazy-init.patch diff --git a/package/system/fstools/Makefile b/package/system/fstools/Makefile old mode 100755 new mode 100644 index 3c318df511..3aa250f7d4 --- a/package/system/fstools/Makefile +++ b/package/system/fstools/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=fstools -PKG_RELEASE:=4 +PKG_RELEASE:=5 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL=$(PROJECT_GIT)/project/fstools.git diff --git a/package/system/fstools/files/fstab.init b/package/system/fstools/files/fstab.init index 5faa8ecbb9..afed78ebfc 100755 --- a/package/system/fstools/files/fstab.init +++ b/package/system/fstools/files/fstab.init @@ -11,6 +11,10 @@ start() { echo "this file has been obsoleted. please call \"/sbin/block mount\" directly" } +restart() { + start +} + stop() { /sbin/block umount } diff --git a/package/system/fstools/patches/100-disable-lazy-init.patch b/package/system/fstools/patches/100-disable-lazy-init.patch deleted file mode 100755 index c30925703b..0000000000 --- a/package/system/fstools/patches/100-disable-lazy-init.patch +++ /dev/null @@ -1,13 +0,0 @@ -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: