Lines Matching refs:source
98 ENG_STATIC void BindMountFile(const char *source, const char *target)
101 const char *p = source;
103 const char *end = source + strlen(source);
105 if (*p != '/') { // source must start with '/'
112 PLUGIN_LOGI("path \' %s \' without extra slash, ignore it", source);
117 PLUGIN_LOGI("path \' %s \' ends with slash, ignore it", source);
128 if (mount(source, targetFullPath, NULL, MS_BIND, NULL) != 0) {
129 PLUGIN_LOGE("Failed to bind mount %s to %s, err = %d", source, targetFullPath, errno);
131 PLUGIN_LOGI("Bind mount %s to %s done", source, targetFullPath);
135 if (symlink(source, targetFullPath) < 0) {
136 PLUGIN_LOGE("Failed to link %s to %s, err = %d", source, targetFullPath, errno);
144 ENG_STATIC void DebugFilesOverlay(const char *source, const char *target)
149 if ((dir = opendir(source)) == NULL) {
150 PLUGIN_LOGE("Open path \' %s \' failed. err = %d", source, errno);
159 if (snprintf_s(srcPath, PATH_MAX, PATH_MAX - 1, "%s/%s", source, de->d_name) == -1) {