Lines Matching refs:targetFullPath
100 char targetFullPath[PATH_MAX] = {};
121 int ret = snprintf_s(targetFullPath, PATH_MAX, PATH_MAX - 1, "%s%s", strcmp(target, "/") == 0 ? "" : target, q);
126 PLUGIN_LOGI("target full path is %s", targetFullPath);
127 if (IsRegularFile(targetFullPath)) {
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);
134 if (!IsExistFile(targetFullPath)) {
135 if (symlink(source, targetFullPath) < 0) {
136 PLUGIN_LOGE("Failed to link %s to %s, err = %d", source, targetFullPath, errno);
139 PLUGIN_LOGW("%s without expected type, skip overlay", targetFullPath);