Home
last modified time | relevance | path

Searched refs:mount_path (Results 1 – 5 of 5) sorted by relevance

/system/core/init/
Dswitch_root.cpp77 for (const auto& mount_path : mounts) { in SwitchRoot() local
78 auto new_mount_path = new_root + mount_path; in SwitchRoot()
80 if (mount(mount_path.c_str(), new_mount_path.c_str(), nullptr, MS_MOVE, nullptr) != 0) { in SwitchRoot()
81 PLOG(FATAL) << "Unable to move mount at '" << mount_path << "'"; in SwitchRoot()
Dmount_namespace.cpp87 static Result<void> MountDir(const std::string& path, const std::string& mount_path) { in MountDir() argument
88 if (int ret = mkdir(mount_path.c_str(), 0755); ret != 0 && errno != EEXIST) { in MountDir()
89 return ErrnoError() << "Could not create mount point " << mount_path; in MountDir()
91 if (mount(path.c_str(), mount_path.c_str(), nullptr, MS_BIND, nullptr) != 0) { in MountDir()
92 return ErrnoError() << "Could not bind mount " << path << " to " << mount_path; in MountDir()
127 const std::string mount_path = to_dir + "/" + apex_manifest->name(); in ActivateFlattenedApexesFrom() local
128 if (auto result = MountDir(apex_path, mount_path); !result.ok()) { in ActivateFlattenedApexesFrom()
/system/core/fs_mgr/libsnapshot/
Dsnapshot_fuzz_utils.cpp293 ret->auto_delete_mount_dir_ = AutoDeleteDir::New(ret->mount_path()); in New()
297 ret->auto_umount_mount_point_ = AutoUnmountTmpfs::New(ret->mount_path(), size); in New()
314 return mount_path() + "/tmp"; in tmp_path()
319 return mount_path() + "/persist"; in persist_path()
329 std::string mount_path() const { in mount_path() function in android::snapshot::AutoMemBasedDir
/system/apex/apexd/
Dapex_file.h58 const std::string& mount_path) const;
Dapex_file.cpp358 const std::string& mount_path) const { in VerifyManifestMatches()
360 ReadManifest(mount_path + "/" + kManifestFilenamePb); in VerifyManifestMatches()