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.cpp113 mntent* mentry; in KillProcessesWithTmpfsMounts() local
114 while ((mentry = getmntent(fp.get())) != nullptr) { in KillProcessesWithTmpfsMounts()
115 if (mentry->mnt_fsname != nullptr && strncmp(mentry->mnt_fsname, "tmpfs", 5) == 0 in KillProcessesWithTmpfsMounts()
116 && android::base::StartsWith(mentry->mnt_dir, prefix)) { in KillProcessesWithTmpfsMounts()
Dcryptfs.cpp1490 mntent* mentry; in ensure_subdirectory_unmounted() local
1495 while ((mentry = getmntent(mnts.get())) != nullptr) { in ensure_subdirectory_unmounted()
1496 if (strcmp(mentry->mnt_dir, top_directory.c_str()) == 0) { in ensure_subdirectory_unmounted()
1500 if (android::base::StartsWith(mentry->mnt_dir, top_directory)) { in ensure_subdirectory_unmounted()
1501 SLOGW("found sub-directory mount %s - %s\n", prefix, mentry->mnt_dir); in ensure_subdirectory_unmounted()
1502 umount_points.push_back(mentry->mnt_dir); in ensure_subdirectory_unmounted()
DVolumeManager.cpp956 mntent* mentry; in unmountAll() local
957 while ((mentry = getmntent(fp)) != NULL) { in unmountAll()
958 auto test = std::string(mentry->mnt_dir); in unmountAll()
/system/core/fs_mgr/tests/
Dfs_mgr_test.cpp267 mntent* mentry; in TEST() local
269 while ((mentry = getmntent(mounts.get())) != nullptr) { in TEST()
273 EXPECT_EQ(mentry->mnt_fsname, entry.blk_device); in TEST()
274 EXPECT_EQ(mentry->mnt_dir, entry.mount_point); in TEST()
275 EXPECT_EQ(mentry->mnt_type, entry.fs_type); in TEST()
278 for (auto& s : android::base::Split(mentry->mnt_opts, ",")) { in TEST()