Searched refs:mentry (Results 1 – 5 of 5) sorted by relevance
/system/core/init/ |
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()
|
D | reboot.cpp | 180 mntent* mentry; in FindPartitionsToUmount() local 181 while ((mentry = getmntent(fp.get())) != nullptr) { in FindPartitionsToUmount() 183 LOG(INFO) << "mount entry " << mentry->mnt_fsname << ":" << mentry->mnt_dir << " opts " in FindPartitionsToUmount() 184 << mentry->mnt_opts << " type " << mentry->mnt_type; in FindPartitionsToUmount() 185 } else if (MountEntry::IsBlockDevice(*mentry) && hasmntopt(mentry, "rw")) { in FindPartitionsToUmount() 186 std::string mount_dir(mentry->mnt_dir); in FindPartitionsToUmount() 191 blockDevPartitions->emplace(blockDevPartitions->begin(), *mentry); in FindPartitionsToUmount() 193 } else if (MountEntry::IsEmulatedDevice(*mentry)) { in FindPartitionsToUmount() 194 emulatedPartitions->emplace(emulatedPartitions->begin(), *mentry); in FindPartitionsToUmount()
|
/system/extras/pagecache/ |
D | dumpcache.c | 143 struct mntent* mentry; in main() local 144 while ((mentry = getmntent(fp)) != NULL) { in main() 145 if (strcmp(mentry->mnt_type, "rootfs") != 0 && in main() 146 strncmp("/dev", mentry->mnt_dir, strlen("/dev")) != 0 && in main() 147 strncmp("/sys", mentry->mnt_dir, strlen("/sys")) != 0 && in main() 148 strncmp("/proc", mentry->mnt_dir, strlen("/proc")) != 0) { in main() 149 nftw(mentry->mnt_dir, &scan_entry, MAX_NUM_FD, FTW_MOUNT | FTW_PHYS | FTW_DEPTH); in main()
|
/system/core/fs_mgr/tests/ |
D | fs_mgr_test.cpp | 150 mntent* mentry; in TEST() local 152 while ((mentry = getmntent(mounts.get())) != nullptr) { in TEST() 156 EXPECT_EQ(mentry->mnt_fsname, entry.blk_device); in TEST() 157 EXPECT_EQ(mentry->mnt_dir, entry.mount_point); in TEST() 158 EXPECT_EQ(mentry->mnt_type, entry.fs_type); in TEST() 161 for (auto& s : android::base::Split(mentry->mnt_opts, ",")) { in TEST()
|
/system/vold/ |
D | VolumeManager.cpp | 661 mntent* mentry; in unmountAll() local 662 while ((mentry = getmntent(fp)) != NULL) { in unmountAll() 663 auto test = std::string(mentry->mnt_dir); in unmountAll()
|