/system/core/fs_mgr/ |
D | fs_mgr_roots.cpp | 69 static MountState GetMountState(const std::string& mount_point) { in GetMountState() argument 76 auto mv = GetEntryForMountPoint(&mounted_fstab, mount_point); in GetMountState() 108 const std::string mount_point = mount_pt.empty() ? rec->mount_point : mount_pt; in TryPathMount() local 110 auto mounted = GetMountState(mount_point); in TryPathMount() 121 LERROR << "unknown fs_type \"" << rec->fs_type << "\" for " << mount_point; in TryPathMount() 125 int result = fs_mgr_do_mount_one(*rec, mount_point); in TryPathMount() 127 PERROR << "Failed to mount " << mount_point << "; formatting"; in TryPathMount() 129 PERROR << "Failed to format " << mount_point; in TryPathMount() 132 result = fs_mgr_do_mount_one(*rec, mount_point); in TryPathMount() 136 PERROR << "Failed to mount " << mount_point; in TryPathMount() [all …]
|
D | fs_mgr_remount.cpp | 86 if (entry.mount_point == "/") return "/system"; in system_mount_point() 87 return entry.mount_point; in system_mount_point() 91 auto mount_point = system_mount_point(entry); in GetWrappedEntry() local 93 [&mount_point](const auto& entry) { in GetWrappedEntry() 94 return android::base::StartsWith(mount_point, in GetWrappedEntry() 196 if (auto candidate_entry = GetEntryForMountPoint(&candidates, entry.mount_point)) { in IsRemountable() 213 const auto mount_point = system_mount_point(*iter); in FindPartition() local 214 if (partition == mount_point || partition == android::base::Basename(mount_point)) { in FindPartition() 217 auto proc_mount_point = (iter->mount_point == "/system") ? "/" : iter->mount_point; in FindPartition() 256 LOG(INFO) << "partition " << arg << " covered by overlayfs for " << wrap->mount_point in GetRemountList() [all …]
|
D | fs_mgr_overlayfs.cpp | 145 bool fs_mgr_filesystem_has_space(const std::string& mount_point) { in fs_mgr_filesystem_has_space() argument 149 if (statvfs(mount_point.c_str(), &vst)) { in fs_mgr_filesystem_has_space() 150 PLOG(ERROR) << "statvfs " << mount_point; in fs_mgr_filesystem_has_space() 196 bool fs_mgr_has_shared_blocks(const std::string& mount_point, const std::string& dev) { in fs_mgr_has_shared_blocks() argument 198 if ((statfs((mount_point + "/lost+found").c_str(), &fs) == -1) || in fs_mgr_has_shared_blocks() 240 if (!fs_mgr_filesystem_has_space(entry->mount_point)) { in fs_mgr_overlayfs_enabled() 256 auto has_shared_blocks = fs_mgr_has_shared_blocks(entry->mount_point, entry->blk_device); in fs_mgr_overlayfs_enabled() 257 if (!has_shared_blocks && (entry->mount_point == "/system")) { in fs_mgr_overlayfs_enabled() 308 std::string fs_mgr_get_overlayfs_candidate(const std::string& mount_point) { in fs_mgr_get_overlayfs_candidate() argument 309 if (!fs_mgr_is_dir(mount_point)) return ""; in fs_mgr_get_overlayfs_candidate() [all …]
|
D | fs_mgr.cpp | 171 static bool umount_retry(const std::string& mount_point) { in umount_retry() argument 176 umounted = umount(mount_point.c_str()) == 0; in umount_retry() 178 LINFO << __FUNCTION__ << "(): unmount(" << mount_point << ") succeeded"; in umount_retry() 181 PERROR << __FUNCTION__ << "(): umount(" << mount_point << ") failed"; in umount_retry() 542 if (entry.mount_point != "/data" || !wants_casefold || has_casefold) return; in tune_casefold() 711 if (entry.mount_point != "/data") return false; in check_if_preventative_fsck_needed() 736 auto& mount_point = alt_mount_point.empty() ? entry.mount_point : alt_mount_point; in prepare_fs_for_mount() local 740 if (lstat(mount_point.c_str(), &info) == 0 && (info.st_mode & S_IFMT) == S_IFLNK) { in prepare_fs_for_mount() 741 unlink(mount_point.c_str()); in prepare_fs_for_mount() 743 mkdir(mount_point.c_str(), 0755); in prepare_fs_for_mount() [all …]
|
D | fs_mgr_priv_overlayfs.h | 23 bool fs_mgr_overlayfs_already_mounted(const std::string& mount_point, bool overlay_only = true); 32 bool fs_mgr_overlayfs_setup(const android::fs_mgr::Fstab& fstab, const char* mount_point = nullptr, 40 OverlayfsTeardownResult fs_mgr_overlayfs_teardown(const char* mount_point = nullptr,
|
D | fs_mgr_fstab.cpp | 399 std::string mount_point; in ReadFstabFromDt() local 404 mount_point = value; in ReadFstabFromDt() 406 mount_point = android::base::StringPrintf("/%s", dp->d_name); in ReadFstabFromDt() 408 fstab_entry.push_back(mount_point); in ReadFstabFromDt() 431 fstab_dt_entries.emplace_back(mount_point, android::base::Join(fstab_entry, " ")); in ReadFstabFromDt() 563 entry.mount_point = std::move(*it++); in ParseFstabFromString() 626 std::string mount_point = "/" + lp_name; in TransformFstabForDsu() local 632 auto pred = [&mount_point](const FstabEntry& entry) { in TransformFstabForDsu() 633 return entry.fs_mgr_flags.first_stage_mount && entry.mount_point == mount_point; in TransformFstabForDsu() 663 .mount_point = mount_point, in TransformFstabForDsu() [all …]
|
D | fs_mgr_vendor_overlay.cpp | 70 bool fs_mgr_vendor_overlay_mount(const std::pair<std::string, std::string>& mount_point) { in fs_mgr_vendor_overlay_mount() argument 71 const auto [overlay_top, mount_dir] = mount_point; in fs_mgr_vendor_overlay_mount()
|
/system/core/fs_mgr/tests/ |
D | fs_mgr_test.cpp | 270 EXPECT_EQ(mentry->mnt_dir, entry.mount_point); in TEST() 497 EXPECT_EQ("none0", entry->mount_point); in TEST() 517 EXPECT_EQ("none1", entry->mount_point); in TEST() 569 EXPECT_EQ("none0", entry->mount_point); in TEST() 592 EXPECT_EQ("none0", entry->mount_point); in TEST() 598 EXPECT_EQ("none1", entry->mount_point); in TEST() 604 EXPECT_EQ("none2", entry->mount_point); in TEST() 610 EXPECT_EQ("none3", entry->mount_point); in TEST() 632 EXPECT_EQ("none0", entry->mount_point); in TEST() 637 EXPECT_EQ("none1", entry->mount_point); in TEST() [all …]
|
D | vts_fs_test.cpp | 119 << entry.mount_point; in TEST() 121 if (std::find(must_be_f2fs.begin(), must_be_f2fs.end(), entry.mount_point) != in TEST() 123 EXPECT_EQ(entry.fs_type, "f2fs") << entry.mount_point; in TEST()
|
/system/apex/apexd/ |
D | apex_database.cpp | 112 std::pair<std::string, int> ParseMountPoint(const std::string& mount_point) { in ParseMountPoint() argument 113 auto package_id = fs::path(mount_point).filename(); in ParseMountPoint() 125 bool IsActiveMountPoint(const std::string& mount_point) { in IsActiveMountPoint() argument 126 return (mount_point.find('@') == std::string::npos); in IsActiveMountPoint() 200 const BlockDevice& block, const std::string& mount_point, in ResolveMountInfo() argument 203 bool temp_mount = EndsWith(mount_point, ".tmp"); in ResolveMountInfo() 211 auto result = MountedApexData(block.DevPath(), *backing_file, mount_point, in ResolveMountInfo() 224 result.mount_point = mount_point; in ResolveMountInfo() 275 auto [block, mount_point] = ParseMountInfo(line); in PopulateFromMounts() 277 if (fs::path(mount_point).parent_path() != kApexRoot) { in PopulateFromMounts() [all …]
|
D | apex_shim.cpp | 127 Result<void> ValidateShimApex(const std::string& mount_point, in ValidateShimApex() argument 129 LOG(DEBUG) << "Validating shim apex " << mount_point; in ValidateShimApex() 141 auto iter = fs::recursive_directory_iterator(mount_point, ec); in ValidateShimApex() 148 auto resolved_mount_point = fs::path(mount_point).string(); in ValidateShimApex() 173 return Error() << "Failed to scan " << mount_point << " : " in ValidateShimApex()
|
D | apex_database.h | 40 std::string mount_point; // Path this apex is mounted on. member 52 const std::string& mount_point, 58 mount_point(mount_point), in loop_name() 76 compare_val = mount_point.compare(rhs.mount_point);
|
D | apexd.cpp | 418 const std::string& mount_point) { in VerifyMountedImage() argument 422 ReadManifest(mount_point + "/" + kManifestFilenamePb); in VerifyMountedImage() 431 return shim::ValidateShimApex(mount_point, apex); in VerifyMountedImage() 437 const std::string& mount_point, in MountPackageImpl() argument 449 LOG(VERBOSE) << "Creating mount point: " << mount_point; in MountPackageImpl() 459 auto exists = PathExists(mount_point); in MountPackageImpl() 463 if (!*exists && mkdir(mount_point.c_str(), kMkdirMode) != 0) { in MountPackageImpl() 464 return ErrnoError() << "Could not create mount point " << mount_point; in MountPackageImpl() 466 auto deleter = [&mount_point]() { in MountPackageImpl() 467 if (rmdir(mount_point.c_str()) != 0) { in MountPackageImpl() [all …]
|
D | apex_shim.h | 29 android::base::Result<void> ValidateShimApex(const std::string& mount_point,
|
/system/core/init/ |
D | mount_handler.cpp | 116 if (stat(entry.mount_point.c_str(), &sb) || !S_ISDIR(sb.st_mode)) rootdisk = ""; in SetMountProperty() 119 if (android::base::StartsWith(entry.mount_point, "/apex/")) rootdisk = ""; in SetMountProperty() 121 auto mount_prop = entry.mount_point; in SetMountProperty() 155 MountHandlerEntry::MountHandlerEntry(const std::string& blk_device, const std::string& mount_point, in MountHandlerEntry() argument 157 : blk_device(blk_device), mount_point(mount_point), fs_type(fs_type) {} in MountHandlerEntry() 162 if (mount_point < r.mount_point) return true; in operator <() 163 if (mount_point > r.mount_point) return false; in operator <()
|
D | mount_namespace.cpp | 47 static bool BindMount(const std::string& source, const std::string& mount_point) { in BindMount() argument 48 if (mount(source.c_str(), mount_point.c_str(), nullptr, MS_BIND | MS_REC, nullptr) == -1) { in BindMount() 55 static bool ChangeMount(const std::string& mount_point, unsigned long mountflags) { in ChangeMount() argument 56 if (mount(nullptr, mount_point.c_str(), nullptr, mountflags, nullptr) == -1) { in ChangeMount() 57 PLOG(ERROR) << "Failed to remount " << mount_point << " as " << std::hex << mountflags; in ChangeMount()
|
D | first_stage_mount.cpp | 178 return entry.mount_point == "/" && entry.fs_type != "rootfs"; in GetRootEntry() 210 LOG(ERROR) << "Image rollback detected for " << fstab_entry.mount_point in IsStandaloneImageRollback() 242 return entry.mount_point == "/metadata"; in DoCreateDevices() 410 if (!fs_mgr_create_canonical_mount_point(begin->mount_point)) { in MountPartition() 423 PLOG(ERROR) << "Failed to setup verity for '" << begin->mount_point << "'"; in MountPartition() 431 for (; current != fstab_.end() && current->mount_point == begin->mount_point; current++) { in MountPartition() 501 return entry.mount_point == "/system"; in TrySwitchSystemAsRoot() 531 if (current->mount_point == "/system") { in MountPartitions() 553 LOG(INFO) << "Failed to mount " << current->mount_point in MountPartitions() 556 LOG(INFO) << "Failed to mount " << current->mount_point in MountPartitions() [all …]
|
D | mount_handler.h | 31 MountHandlerEntry(const std::string& blk_device, const std::string& mount_point, 37 const std::string mount_point; member
|
/system/vold/ |
D | MetadataCrypt.cpp | 98 static bool mount_via_fs_mgr(const char* mount_point, const char* blk_device, bool needs_encrypt) { in mount_via_fs_mgr() argument 105 auto mount_rc = fs_mgr_do_mount(&fstab_default, const_cast<char*>(mount_point), in mount_via_fs_mgr() 117 LOG(DEBUG) << "Mounted " << mount_point; in mount_via_fs_mgr() 242 bool fscrypt_mount_metadata_encrypted(const std::string& blk_device, const std::string& mount_point, in fscrypt_mount_metadata_encrypted() argument 245 LOG(DEBUG) << "fscrypt_mount_metadata_encrypted: " << mount_point in fscrypt_mount_metadata_encrypted() 256 auto data_rec = GetEntryForMountPoint(&fstab_default, mount_point); in fscrypt_mount_metadata_encrypted() 258 LOG(ERROR) << "Failed to get data_rec for " << mount_point; in fscrypt_mount_metadata_encrypted() 328 error = ext4::Format(crypto_blkdev, 0, mount_point); in fscrypt_mount_metadata_encrypted() 336 LOG(ERROR) << "Format of " << crypto_blkdev << " for " << mount_point in fscrypt_mount_metadata_encrypted() 340 LOG(DEBUG) << "Format of " << crypto_blkdev << " for " << mount_point << " succeeded."; in fscrypt_mount_metadata_encrypted() [all …]
|
/system/extras/ext4_utils/ |
D | mkuserimg_mke2fs.py | 187 if args.mount_point: 188 mke2fs_opts += ["-M", args.mount_point] 203 ["-f", args.src_dir, "-a", args.mount_point, 218 if not args.mount_point: 221 if args.mount_point[0] != '/': 222 args.mount_point = '/' + args.mount_point
|
D | test_mkuserimg_mke2fs.py | 42 self.assertEqual("data", args.mount_point) 76 self.assertEqual("data", args.mount_point) 129 args.file_contexts, "-f", args.src_dir, "-a", args.mount_point,
|
/system/core/fs_mgr/libfs_avb/ |
D | avb_ops.cpp | 113 std::string mount_point(partition_name); in DeriveMountPoint() local 116 mount_point.erase(found); // converts system_a => system in DeriveMountPoint() 119 return "/" + mount_point; in DeriveMountPoint() 152 const auto mount_point = DeriveMountPoint(partition_name); in GetLogicalPath() local 153 if (mount_point.empty()) return ""; in GetLogicalPath() 155 auto fstab_entry = GetEntryForMountPoint(&fstab_, mount_point); in GetLogicalPath()
|
/system/gsid/tests/ |
D | boot_tests.cpp | 96 for (const auto& mount_point : mount_points) { in TEST() local 97 auto path = mount_point + "/gsi"; in TEST() 108 auto entry = GetEntryForMountPoint(&fstab, mount_point); in TEST()
|
/system/core/fs_mgr/include/ |
D | fs_mgr.h | 93 const std::string& mount_point = ""); 144 bool fs_mgr_create_canonical_mount_point(const std::string& mount_point);
|
D | fs_mgr_overlayfs.h | 41 void TeardownAllOverlayForMountPoint(const std::string& mount_point = {});
|