Home
last modified time | relevance | path

Searched refs:newRoot (Results 1 - 2 of 2) sorted by relevance

/base/startup/init/interfaces/innerkits/fs_manager/switch_root/
H A Dswitch_root.c142 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, "/", NUL in SwitchRoot()
[all...]
/base/startup/init/interfaces/innerkits/fs_manager/switch_root/include/
H A Dswitch_root.h19 int SwitchRoot(const char *newRoot);

Completed in 1 milliseconds