Searched refs:new_root (Results 1 – 4 of 4) sorted by relevance
/aosp12/system/core/init/ |
H A D | switch_root.cpp | 37 std::vector<std::string> GetMounts(const std::string& new_root) { in GetMounts() argument 53 if (mentry->mnt_dir == new_root) { in GetMounts() 72 void SwitchRoot(const std::string& new_root) { in SwitchRoot() argument 73 auto mounts = GetMounts(new_root); in SwitchRoot() 75 LOG(INFO) << "Switching root to '" << new_root << "'"; in SwitchRoot() 78 auto new_mount_path = new_root + mount_path; in SwitchRoot() 85 if (chdir(new_root.c_str()) != 0) { in SwitchRoot() 86 PLOG(FATAL) << "Could not chdir to new_root, '" << new_root << "'"; in SwitchRoot() 89 if (mount(new_root.c_str(), "/", nullptr, MS_MOVE, nullptr) != 0) { in SwitchRoot() 90 PLOG(FATAL) << "Unable to move root mount to new_root, '" << new_root << "'"; in SwitchRoot()
|
H A D | switch_root.h | 24 void SwitchRoot(const std::string& new_root);
|
/aosp12/art/runtime/ |
H A D | transaction.cc | 365 mirror::Object* new_root = old_root; in VisitObjectLogs() local 366 visitor->VisitRoot(&new_root, RootInfo(kRootUnknown)); in VisitObjectLogs() 367 if (new_root != old_root) { in VisitObjectLogs() 368 moving_roots.push_back(std::make_pair(old_root, new_root)); in VisitObjectLogs() 375 mirror::Object* new_root = pair.second; in VisitObjectLogs() local 378 CHECK(object_logs_.find(new_root) == object_logs_.end()); in VisitObjectLogs() 392 mirror::Array* new_root = old_root; in VisitArrayLogs() local 394 if (new_root != old_root) { in VisitArrayLogs() 395 moving_roots.push_back(std::make_pair(old_root, new_root)); in VisitArrayLogs() 402 mirror::Array* new_root = pair.second; in VisitArrayLogs() local [all …]
|
/aosp12/bionic/libc/ |
H A D | SECCOMP_ALLOWLIST_COMMON.TXT | 7 int pivot_root:pivot_root(const char *new_root, const char *put_old) lp64
|