Lines Matching refs:targetFullPath
312 char targetFullPath[PATH_MAX] = {0};
333 int ret = snprintf_s(targetFullPath, PATH_MAX, PATH_MAX - 1, "%s%s", strcmp(target, "/") == 0 ? "" : target, q);
338 INIT_LOGI("target full path is %s", targetFullPath);
339 if (access(targetFullPath, F_OK) != 0) { // file not exist, symlink targetFullPath
340 if (symlink(source, targetFullPath) < 0) {
341 INIT_LOGE("Failed to link %s to %s, err = %d", source, targetFullPath, errno);
345 if (IsRegularFile(targetFullPath)) { // file exist, moung bind targetFullPath
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);
353 INIT_LOGW("%s without expected type, skip overlay", targetFullPath);