From 025371217c9801d357e7911c422ae2edbaf6ae9b Mon Sep 17 00:00:00 2001 From: cheng_jinsong Date: Tue, 8 Nov 2022 14:21:02 +0800 Subject: [PATCH] updater min size Signed-off-by: cheng_jinsong --- services/etc/param/ohos.para.size | 9 --------- services/param/include/param_osadp.h | 10 +++++++++- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/services/etc/param/ohos.para.size b/services/etc/param/ohos.para.size index bf68781d3..a417ad6d8 100755 --- a/services/etc/param/ohos.para.size +++ b/services/etc/param/ohos.para.size @@ -18,16 +18,7 @@ startup_param=40960 persist_param=40960 const_param=40960 persist_sys_param=4096 -hw_sc_param=512 -hw_sc_build_os_param=512 -init_param=512 -init_svc_param=512 -const_postinstall_param=512 -const_postinstall_fstab_param=512 -const_allow_param=512 -const_allow_mock_param=512 devinfo_public_param=30720 -security_param=512 sys_param=4096 bootevent_param=4096 startup_init_param=40960 diff --git a/services/param/include/param_osadp.h b/services/param/include/param_osadp.h index 8a1260643..3fdbfe6ae 100755 --- a/services/param/include/param_osadp.h +++ b/services/param/include/param_osadp.h @@ -45,7 +45,15 @@ extern "C" { #endif #define PARAM_WORKSPACE_INVALID ((uint32_t)-1) -#define PARAM_WORKSPACE_MIN (512) +#define PARAM_WORKSPACE_MIN (1024) +/* + length for parameter = node size + data size + xxxx.xxxx.xxxx.xxxx + node size: + 24 * (count(.) + 1) + strlen(xxxx.xxxx.xxxx.xxxx) + data size + strlen(xxxx.xxxx.xxxx.xxxx) + 96 +*/ #if (defined __LITEOS_A__ || defined __LITEOS_M__) #define DAC_DEFAULT_MODE 0777 #ifdef STARTUP_INIT_TEST