Lines Matching defs:source
310 static void MountBindEngFile(const char *source, const char *target)
313 const char *p = source;
315 const char *end = source + strlen(source);
317 if (*p != '/') { // source must start with '/'
324 INIT_LOGI("path \' %s \' without extra slash, ignore it", source);
329 INIT_LOGI("path \' %s \' ends with slash, ignore it", source);
340 if (symlink(source, targetFullPath) < 0) {
341 INIT_LOGE("Failed to link %s to %s, err = %d", source, targetFullPath, errno);
346 if (mount(source, targetFullPath, NULL, MS_BIND, NULL) != 0) {
347 INIT_LOGE("Failed to bind mount %s to %s, err = %d", source, targetFullPath, errno);
349 INIT_LOGI("Bind mount %s to %s done", source, targetFullPath);
356 static void EngFilesOverlay(const char *source, const char *target)
361 if ((dir = opendir(source)) == NULL) {
362 INIT_LOGE("Open path \' %s \' failed. err = %d", source, errno);
371 if (snprintf_s(srcPath, PATH_MAX, PATH_MAX - 1, "%s/%s", source, de->d_name) == -1) {