Searched refs:mentry (Results 1 – 4 of 4) sorted by relevance
/aosp14/system/core/init/ |
H A D | switch_root.cpp | 45 mntent* mentry; in GetMounts() local 46 while ((mentry = getmntent(fp.get())) != nullptr) { in GetMounts() 48 if (mentry->mnt_dir == "/"s) { in GetMounts() 53 if (mentry->mnt_dir == new_root) { in GetMounts() 58 if (std::find_if(result.begin(), result.end(), [&mentry](const auto& older_mount) { in GetMounts() 59 return StartsWith(mentry->mnt_dir, older_mount); in GetMounts() 64 result.emplace_back(mentry->mnt_dir); in GetMounts()
|
H A D | reboot.cpp | 229 mntent* mentry; in IsDataMounted() local 230 while ((mentry = getmntent(fp.get())) != nullptr) { in IsDataMounted() 231 if (mentry->mnt_dir == "/data"s) { in IsDataMounted() 232 return fstype == "*" || mentry->mnt_type == fstype; in IsDataMounted() 247 mntent* mentry; in FindPartitionsToUmount() local 248 while ((mentry = getmntent(fp.get())) != nullptr) { in FindPartitionsToUmount() 250 LOG(INFO) << "mount entry " << mentry->mnt_fsname << ":" << mentry->mnt_dir << " opts " in FindPartitionsToUmount() 251 << mentry->mnt_opts << " type " << mentry->mnt_type; in FindPartitionsToUmount() 252 } else if (MountEntry::IsBlockDevice(*mentry) && hasmntopt(mentry, "rw")) { in FindPartitionsToUmount() 253 std::string mount_dir(mentry->mnt_dir); in FindPartitionsToUmount() [all …]
|
/aosp14/system/core/fs_mgr/tests/ |
H A D | fs_mgr_test.cpp | 263 mntent* mentry; in TEST() local 265 while ((mentry = getmntent(mounts.get())) != nullptr) { in TEST() 269 EXPECT_EQ(mentry->mnt_fsname, entry.blk_device); in TEST() 270 EXPECT_EQ(mentry->mnt_dir, entry.mount_point); in TEST() 271 EXPECT_EQ(mentry->mnt_type, entry.fs_type); in TEST() 274 for (auto& s : android::base::Split(mentry->mnt_opts, ",")) { in TEST()
|
/aosp14/frameworks/base/core/jni/ |
H A D | com_android_internal_os_Zygote.cpp | 757 mntent* mentry; in UnmountTree() local 758 while ((mentry = getmntent(fp)) != nullptr) { in UnmountTree() 759 if (strncmp(mentry->mnt_dir, path, path_len) == 0) { in UnmountTree() 760 to_unmount.push_front(std::string(mentry->mnt_dir)); in UnmountTree()
|