Home
last modified time | relevance | path

Searched refs:mount_point (Results 1 – 20 of 20) sorted by relevance

/bootable/recovery/updater/
Dmounts.cpp34 std::string mount_point; member
56 v->mount_point = e->mnt_dir; in scan_mounted_volumes()
65 MountedVolume* find_mounted_volume_by_mount_point(const char* mount_point) { in find_mounted_volume_by_mount_point() argument
67 if (g_mounts_state[i]->mount_point == mount_point) return g_mounts_state[i]; in find_mounted_volume_by_mount_point()
75 std::string mount_point = volume->mount_point; in unmount_mounted_volume() local
76 volume->mount_point.clear(); in unmount_mounted_volume()
77 int result = umount(mount_point.c_str()); in unmount_mounted_volume()
79 PLOG(WARNING) << "Failed to umount " << mount_point; in unmount_mounted_volume()
Dsimulator_runtime.cpp43 int SimulatorRuntime::Mount(const std::string_view location, const std::string_view mount_point, in Mount() argument
46 if (auto mounted_location = mounted_partitions_.find(mount_point); in Mount()
48 LOG(ERROR) << mount_point << " has been mounted at " << mounted_location->second; in Mount()
52 mounted_partitions_.emplace(mount_point, location); in Mount()
56 bool SimulatorRuntime::IsMounted(const std::string_view mount_point) const { in IsMounted()
57 return mounted_partitions_.find(mount_point) != mounted_partitions_.end(); in IsMounted()
60 std::pair<bool, int> SimulatorRuntime::Unmount(const std::string_view mount_point) { in Unmount() argument
61 if (!IsMounted(mount_point)) { in Unmount()
65 mounted_partitions_.erase(std::string(mount_point)); in Unmount()
Dupdater_runtime.cpp91 int UpdaterRuntime::Mount(const std::string_view location, const std::string_view mount_point, in Mount() argument
93 std::string mount_point_string(mount_point); in Mount()
120 bool UpdaterRuntime::IsMounted(const std::string_view mount_point) const { in IsMounted()
122 MountedVolume* vol = find_mounted_volume_by_mount_point(std::string(mount_point).c_str()); in IsMounted()
126 std::pair<bool, int> UpdaterRuntime::Unmount(const std::string_view mount_point) { in Unmount() argument
128 MountedVolume* vol = find_mounted_volume_by_mount_point(std::string(mount_point).c_str()); in Unmount()
Dbuild_info.cpp47 std::string entry_name = directory + fstab_info.mount_point + ".img"; in ParseTargetFile()
63 mapped_path = work_dir_ + fstab_info.mount_point + ".img"; in ParseTargetFile()
71 LOG(INFO) << "Mounted " << fstab_info.mount_point << "\nMapping: " << fstab_info.blockdev_name in ParseTargetFile()
76 FakeBlockDevice(fstab_info.blockdev_name, fstab_info.mount_point, mapped_path)); in ParseTargetFile()
Dinstall.cpp300 const std::string& mount_point = args[3]; in MountFn() local
317 if (mount_point.empty()) { in MountFn()
323 if (updater->GetRuntime()->Mount(location, mount_point, fs_type, mount_options) != 0) { in MountFn()
325 location.c_str(), mount_point.c_str(), in MountFn()
330 return StringValue(mount_point); in MountFn()
343 const std::string& mount_point = args[0]; in IsMountedFn() local
344 if (mount_point.empty()) { in IsMountedFn()
350 if (!updater_runtime->IsMounted(mount_point)) { in IsMountedFn()
354 return StringValue(mount_point); in IsMountedFn()
365 const std::string& mount_point = args[0]; in UnmountFn() local
[all …]
Dmounts.h23 MountedVolume* find_mounted_volume_by_mount_point(const char* mount_point);
Dtarget_files.cpp88 const auto& mount_point = tokens[1]; in ParseFstab() local
90 if (!android::base::StartsWith(mount_point, "/")) { in ParseFstab()
91 LOG(WARNING) << "mount point '" << mount_point << "' does not start with '/'"; in ParseFstab()
101 fstab_info_list->emplace_back(blockdev, mount_point, fs_type); in ParseFstab()
258 LOG(ERROR) << "Failed to convert " << fstab_info.mount_point << " to raw."; in ExtractImage()
/bootable/recovery/recovery_utils/
Droots.cpp59 .mount_point = "/tmp", in load_volume_table()
67 std::cout << " " << i << " " << entry.mount_point << " " in load_volume_table()
74 Volume* volume_for_mount_point(const std::string& mount_point) { in volume_for_mount_point() argument
75 return android::fs_mgr::GetEntryForMountPoint(&fstab, mount_point); in volume_for_mount_point()
79 int ensure_path_mounted_at(const std::string& path, const std::string& mount_point) { in ensure_path_mounted_at() argument
80 return android::fs_mgr::EnsurePathMounted(&fstab, path, mount_point) ? 0 : -1; in ensure_path_mounted_at()
143 if (v->mount_point != volume) { in format_volume()
148 LOG(ERROR) << "format_volume: Failed to unmount \"" << v->mount_point << "\""; in format_volume()
300 if (entry.mount_point == "/") { in setup_install_mounts()
304 if (entry.mount_point == "/tmp" || entry.mount_point == "/cache") { in setup_install_mounts()
[all …]
/bootable/recovery/updater/include/updater/
Dtarget_files.h30 FstabInfo(std::string blockdev_name, std::string mount_point, std::string fs_type) in FstabInfo() argument
32 mount_point(std::move(mount_point)), in FstabInfo()
36 std::string mount_point; variable
Dbuild_info.h31 FakeBlockDevice(std::string block_device, std::string mount_point, std::string temp_file_path) in FakeBlockDevice() argument
33 mount_point(std::move(mount_point)), in FakeBlockDevice()
37 std::string mount_point; variable
Dupdater_runtime.h43 int Mount(const std::string_view location, const std::string_view mount_point,
45 bool IsMounted(const std::string_view mount_point) const override;
46 std::pair<bool, int> Unmount(const std::string_view mount_point) override;
Dsimulator_runtime.h40 int Mount(const std::string_view location, const std::string_view mount_point,
42 bool IsMounted(const std::string_view mount_point) const override;
43 std::pair<bool, int> Unmount(const std::string_view mount_point) override;
/bootable/recovery/recovery_utils/include/recovery_utils/
Droots.h29 Volume* volume_for_mount_point(const std::string& mount_point);
36 int ensure_path_mounted_at(const std::string& path, const std::string& mount_point);
/bootable/recovery/edify/include/edify/
Dupdater_runtime_interface.h44 virtual int Mount(const std::string_view location, const std::string_view mount_point,
48 virtual bool IsMounted(const std::string_view mount_point) const = 0;
52 virtual std::pair<bool, int> Unmount(const std::string_view mount_point) = 0;
/bootable/recovery/tests/unit/
Dfuse_sideload_test.cpp76 TemporaryDir mount_point; in TEST() local
79 ASSERT_EQ(0, run_fuse_sideload(std::move(provider), mount_point.path)); in TEST()
83 std::string package = std::string(mount_point.path) + "/" + FUSE_SIDELOAD_HOST_FILENAME; in TEST()
105 std::string exit_flag = std::string(mount_point.path) + "/" + FUSE_SIDELOAD_HOST_EXIT_FLAG; in TEST()
/bootable/recovery/fuse_sideload/include/
Dfuse_sideload.h32 const char* mount_point = FUSE_SIDELOAD_HOST_MOUNTPOINT);
/bootable/recovery/fuse_sideload/
Dfuse_sideload.cpp344 int run_fuse_sideload(std::unique_ptr<FuseDataProvider>&& provider, const char* mount_point) { in run_fuse_sideload() argument
347 umount2(mount_point, MNT_FORCE); in run_fuse_sideload()
406 result = mount("/dev/fuse", mount_point, "fuse", MS_NOSUID | MS_NODEV | MS_RDONLY | MS_NOEXEC, in run_fuse_sideload()
487 if (umount2(mount_point, MNT_DETACH) == -1) { in run_fuse_sideload()
/bootable/recovery/uncrypt/
Duncrypt.cpp177 if (entry.mount_point.empty()) { in FindBlockDevice()
180 if (android::base::StartsWith(path, entry.mount_point + "/")) { in FindBlockDevice()
/bootable/recovery/tests/unit/host/
Dupdate_simulator_test.cpp183 return std::vector<string>{ info.blockdev_name, info.mount_point, info.fs_type }; in TEST_F()
/bootable/recovery/bootloader_message/
Dbootloader_message.cpp58 if (entry.mount_point == "/misc") { in get_misc_blk_device()