Home
last modified time | relevance | path

Searched refs:mentry (Results 1 – 7 of 7) sorted by relevance

/system/core/init/
Dswitch_root.cpp45 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()
Dreboot.cpp227 mntent* mentry; in IsDataMounted() local
228 while ((mentry = getmntent(fp.get())) != nullptr) { in IsDataMounted()
229 if (mentry->mnt_dir == "/data"s) { in IsDataMounted()
245 mntent* mentry; in FindPartitionsToUmount() local
246 while ((mentry = getmntent(fp.get())) != nullptr) { in FindPartitionsToUmount()
248 LOG(INFO) << "mount entry " << mentry->mnt_fsname << ":" << mentry->mnt_dir << " opts " in FindPartitionsToUmount()
249 << mentry->mnt_opts << " type " << mentry->mnt_type; in FindPartitionsToUmount()
250 } else if (MountEntry::IsBlockDevice(*mentry) && hasmntopt(mentry, "rw")) { in FindPartitionsToUmount()
251 std::string mount_dir(mentry->mnt_dir); in FindPartitionsToUmount()
256 block_dev_partitions->emplace(block_dev_partitions->begin(), *mentry); in FindPartitionsToUmount()
[all …]
/system/extras/pagecache/
Ddumpcache.c143 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/vold/
DProcess.cpp112 mntent* mentry; in KillProcessesWithMounts() local
113 while ((mentry = getmntent(fp.get())) != nullptr) { in KillProcessesWithMounts()
114 if (android::base::StartsWith(mentry->mnt_dir, prefix)) { in KillProcessesWithMounts()
Dcryptfs.cpp1410 mntent* mentry; in ensure_subdirectory_unmounted() local
1415 while ((mentry = getmntent(mnts.get())) != nullptr) { in ensure_subdirectory_unmounted()
1416 if (strcmp(mentry->mnt_dir, top_directory.c_str()) == 0) { in ensure_subdirectory_unmounted()
1420 if (android::base::StartsWith(mentry->mnt_dir, top_directory)) { in ensure_subdirectory_unmounted()
1421 SLOGW("found sub-directory mount %s - %s\n", prefix, mentry->mnt_dir); in ensure_subdirectory_unmounted()
1422 umount_points.push_back(mentry->mnt_dir); in ensure_subdirectory_unmounted()
DVolumeManager.cpp974 mntent* mentry; in unmountAll() local
975 while ((mentry = getmntent(fp)) != NULL) { in unmountAll()
976 auto test = std::string(mentry->mnt_dir); in unmountAll()
/system/core/fs_mgr/tests/
Dfs_mgr_test.cpp151 mntent* mentry; in TEST() local
153 while ((mentry = getmntent(mounts.get())) != nullptr) { in TEST()
157 EXPECT_EQ(mentry->mnt_fsname, entry.blk_device); in TEST()
158 EXPECT_EQ(mentry->mnt_dir, entry.mount_point); in TEST()
159 EXPECT_EQ(mentry->mnt_type, entry.fs_type); in TEST()
162 for (auto& s : android::base::Split(mentry->mnt_opts, ",")) { in TEST()