Searched refs:newRoot (Results 1 – 3 of 3) sorted by relevance
/ohos5.0/base/startup/init/interfaces/innerkits/fs_manager/switch_root/ |
H A D | switch_root.c | 142 int SwitchRoot(const char *newRoot) in SwitchRoot() argument 144 if (newRoot == NULL || *newRoot == '\0') { in SwitchRoot() 155 if (stat(newRoot, &newRootStat) != 0) { in SwitchRoot() 156 INIT_LOGE("Failed to get new root \" %s \" stat", newRoot); in SwitchRoot() 166 if (MountToNewTarget(newRoot) < 0) { in SwitchRoot() 167 INIT_LOGE("Failed to move mount to new root \" %s \" stat", newRoot); in SwitchRoot() 173 if (chdir(newRoot) < 0) { in SwitchRoot() 174 INIT_LOGE("Failed to change directory to %s, err = %d", newRoot, errno); in SwitchRoot() 179 if (mount(newRoot, "/", NULL, MS_MOVE, NULL) < 0) { in SwitchRoot() 180 INIT_LOGE("Failed to mount moving %s to %s, err = %d", newRoot, "/", errno); in SwitchRoot() [all …]
|
/ohos5.0/base/startup/init/interfaces/innerkits/fs_manager/switch_root/include/ |
H A D | switch_root.h | 19 int SwitchRoot(const char *newRoot);
|
/ohos5.0/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/ |
H A D | MainEditor.js | 2145 syncRootStatus(newRoot, oldRoot) { argument 2146 newRoot.isOpen_ = oldRoot.isOpen_; 2147 newRoot.value_.forEach((item, index) => { 2163 let newRoot = Generator.gi().astToObj(t[index].ast.astRoot_); 2166 this.syncRootStatus(newRoot, this.files_[index]); 2169 this.files_[index] = newRoot;
|