From 3fcae062ecb4cd1ee71e334e866c522158ee6e91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=B5=A9?= Date: Tue, 17 Jun 2025 10:37:22 +0800 Subject: [PATCH] add checkpoint Hook param MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 杨浩 --- interfaces/innerkits/fs_manager/fstab_mount.c | 6 +++++- ueventd/ueventd_main.c | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/interfaces/innerkits/fs_manager/fstab_mount.c b/interfaces/innerkits/fs_manager/fstab_mount.c index e5cdced06..a067b6198 100755 --- a/interfaces/innerkits/fs_manager/fstab_mount.c +++ b/interfaces/innerkits/fs_manager/fstab_mount.c @@ -550,7 +550,11 @@ static int MountItemByFsType(FstabItem *item) static int ExecCheckpointHook(FstabItem *item) { - int ret = HookMgrExecute(GetBootStageHookMgr(), INIT_DISABLE_CHECKPOINT, (void*)item, NULL); + HOOK_EXEC_OPTIONS options; + options.flags = TRAVERSE_STOP_WHEN_ERROR; + options.postHook = NULL; + options.preHook = NULL; + int ret = HookMgrExecute(GetBootStageHookMgr(), INIT_DISABLE_CHECKPOINT, (void*)item, &options); BEGET_LOGI("ExecCheckpointHook ret %d", ret); return ret; } diff --git a/ueventd/ueventd_main.c b/ueventd/ueventd_main.c index 05891f2b5..143496bfc 100644 --- a/ueventd/ueventd_main.c +++ b/ueventd/ueventd_main.c @@ -119,7 +119,7 @@ static int UeventdDaemon(int listen_only) (void)close(fd); } else { INIT_LOGI("ueventd start to process uevent message"); - ProcessUevent(ueventSockFd, NULL, 0, NULL); // Not require boot devices); // Not require boot devices + ProcessUevent(ueventSockFd, NULL, 0, NULL); // Not require boot devices } PollUeventdSocketTimeout(ueventSockFd, ondemand); CloseUeventConfig(); -- Gitee