Searched refs:mount_point (Results 1 – 6 of 6) sorted by relevance
/bootable/recovery/ |
D | mounts.cpp | 34 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()
|
D | roots.cpp | 67 printf(" %d %s %s %s %lld\n", i, v->mount_point, v->fs_type, in load_volume_table() 78 int ensure_path_mounted_at(const char* path, const char* mount_point) { in ensure_path_mounted_at() argument 94 if (!mount_point) { in ensure_path_mounted_at() 95 mount_point = v->mount_point; in ensure_path_mounted_at() 98 MountedVolume* mv = find_mounted_volume_by_mount_point(mount_point); in ensure_path_mounted_at() 104 mkdir(mount_point, 0755); // in case it doesn't already exist in ensure_path_mounted_at() 109 int result = mount(v->blk_device, mount_point, v->fs_type, v->flags, v->fs_options); in ensure_path_mounted_at() 111 LOG(ERROR) << "failed to mount " << mount_point << " (" << strerror(errno) in ensure_path_mounted_at() 115 result = mount(v->blk_device, mount_point, v->fs_type, v->flags, v->fs_options); in ensure_path_mounted_at() 117 PLOG(ERROR) << "failed to format " << mount_point; in ensure_path_mounted_at() [all …]
|
D | mounts.h | 24 MountedVolume* find_mounted_volume_by_mount_point(const char* mount_point);
|
D | roots.h | 33 int ensure_path_mounted_at(const char* path, const char* mount_point);
|
/bootable/recovery/updater/ |
D | install.cpp | 143 const std::string& mount_point = args[3]; in MountFn() local 160 if (mount_point.empty()) { in MountFn() 169 selabel_lookup(sehandle, &secontext, mount_point.c_str(), 0755); in MountFn() 173 mkdir(mount_point.c_str(), 0755); in MountFn() 181 if (mount(location.c_str(), mount_point.c_str(), fs_type.c_str(), in MountFn() 183 uiPrintf(state, "%s: Failed to mount %s at %s: %s", name, location.c_str(), mount_point.c_str(), in MountFn() 188 return StringValue(mount_point); in MountFn() 201 const std::string& mount_point = args[0]; in IsMountedFn() local 202 if (mount_point.empty()) { in IsMountedFn() 208 MountedVolume* vol = find_mounted_volume_by_mount_point(mount_point.c_str()); in IsMountedFn() [all …]
|
/bootable/recovery/uncrypt/ |
D | uncrypt.cpp | 181 if (!v->mount_point) { in find_block_device() 184 int len = strlen(v->mount_point); in find_block_device() 185 if (strncmp(path, v->mount_point, len) == 0 && in find_block_device()
|