Searched refs:targetFullPath (Results 1 - 2 of 2) sorted by relevance
/base/startup/init/services/modules/init_eng/ |
H A D | init_eng.c | 100 char targetFullPath[PATH_MAX] = {}; in BindMountFile() local 121 int ret = snprintf_s(targetFullPath, PATH_MAX, PATH_MAX - 1, "%s%s", strcmp(target, "/") == 0 ? "" : target, q); in BindMountFile() 126 PLUGIN_LOGI("target full path is %s", targetFullPath); in BindMountFile() 127 if (IsRegularFile(targetFullPath)) { in BindMountFile() 128 if (mount(source, targetFullPath, NULL, MS_BIND, NULL) != 0) { in BindMountFile() 129 PLUGIN_LOGE("Failed to bind mount %s to %s, err = %d", source, targetFullPath, errno); in BindMountFile() 131 PLUGIN_LOGI("Bind mount %s to %s done", source, targetFullPath); in BindMountFile() 134 if (!IsExistFile(targetFullPath)) { in BindMountFile() 135 if (symlink(source, targetFullPath) < 0) { in BindMountFile() 136 PLUGIN_LOGE("Failed to link %s to %s, err = %d", source, targetFullPath, errn in BindMountFile() [all...] |
/base/startup/init/remount/ |
H A D | remount_overlay.c | 312 char targetFullPath[PATH_MAX] = {0};
in MountBindEngFile() local 333 int ret = snprintf_s(targetFullPath, PATH_MAX, PATH_MAX - 1, "%s%s", strcmp(target, "/") == 0 ? "" : target, q);
in MountBindEngFile() 338 INIT_LOGI("target full path is %s", targetFullPath);
in MountBindEngFile() 339 if (access(targetFullPath, F_OK) != 0) { // file not exist, symlink targetFullPath
in MountBindEngFile() 340 if (symlink(source, targetFullPath) < 0) {
in MountBindEngFile() 341 INIT_LOGE("Failed to link %s to %s, err = %d", source, targetFullPath, errno);
in MountBindEngFile() 345 if (IsRegularFile(targetFullPath)) { // file exist, moung bind targetFullPath
in MountBindEngFile() 346 if (mount(source, targetFullPath, NUL in MountBindEngFile() [all...] |
Completed in 2 milliseconds