#define BACKEND_MEMORY_PREFIX "memory/"
#define BACKEND_SYSTEM_DIR tzplatform_getenv(TZ_SYS_CONFIG)
-#define BACKEND_MEMORY_DIR "/var/run/"
+#define BACKEND_MEMORY_DIR tzplatform_getenv(TZ_SYS_RUN)
/* This value can be optimized according to the device characteristcs and file system configuration */
#define FILE_ATOMIC_GUARANTEE_SIZE 4096
}
const char *test_dir[5]={
- "/opt/var/kdb/db/unittest", "/opt/var/kdb/file/unittest", "/var/run/memory/unittest",
+ "/opt/var/kdb/db/unittest", "/opt/var/kdb/file/unittest", tzplatform_mkpath3(TZ_SYS_CONFIG,"memory","unittest"),
"/opt/var/gconf/local/unittest", "/opt/var/gconf/unittest"};
void recursive_unset_operation(void)
source /etc/tizen-platform.conf
-mkdir /var/run/memory
-chmod 777 /var/run/memory
+mkdir -p ${TZ_SYS_RUN}/memory
+chmod 777 ${TZ_SYS_RUN}/memory
set -e
-cp -a ${TZ_SYS_CONFIG}/memory_init/memory/* /var/run/memory
+cp -a ${TZ_SYS_CONFIG}/memory_init/memory/* ${TZ_SYS_RUN}/memory
const char *BACKEND_FILE_PREFIX = "file/";
const char *BACKEND_MEMORY_PREFIX = "memory/";
-const char *MEMORY_PREFIX = "/var/run";
-
static char *guid = NULL;
static char *uid = NULL;
static char *vconf_type = NULL;
} else if (0 ==
strncmp(pszKey, BACKEND_MEMORY_PREFIX,
strlen(BACKEND_MEMORY_PREFIX))) {
- snprintf(pszBuf, BUFSIZE, "%s/%s", MEMORY_PREFIX, pszKey);
+ snprintf(pszBuf, BUFSIZE, "%s/%s", tzplatform_getenv(TZ_SYS_RUN), pszKey);
return 0;
}
return -1;