Home
last modified time | relevance | path

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

/system/core/libcutils/
Dandroid_reboot.c74 struct mntent* mentry; in find_rw() local
80 while ((mentry = getmntent(fp)) != NULL) { in find_rw()
81 if (is_block_device(mentry->mnt_fsname) && in find_rw()
82 has_mount_option(mentry->mnt_opts, "rw")) { in find_rw()
84 item->entry = *mentry; in find_rw()
85 item->entry.mnt_fsname = strdup(mentry->mnt_fsname); in find_rw()
86 item->entry.mnt_dir = strdup(mentry->mnt_dir); in find_rw()
87 item->entry.mnt_type = strdup(mentry->mnt_type); in find_rw()
88 item->entry.mnt_opts = strdup(mentry->mnt_opts); in find_rw()
136 struct mntent* mentry; in remount_ro() local
[all …]
/system/vold/
DVolumeManager.cpp492 mntent* mentry; in unmount_tree() local
493 while ((mentry = getmntent(fp)) != NULL) { in unmount_tree()
494 if (strncmp(mentry->mnt_dir, path, path_len) == 0) { in unmount_tree()
495 toUnmount.push_front(std::string(mentry->mnt_dir)); in unmount_tree()
666 mntent* mentry; in unmountAll() local
667 while ((mentry = getmntent(fp)) != NULL) { in unmountAll()
668 if (strncmp(mentry->mnt_dir, "/mnt/", 5) == 0 in unmountAll()
669 || strncmp(mentry->mnt_dir, "/storage/", 9) == 0) { in unmountAll()
670 toUnmount.push_front(std::string(mentry->mnt_dir)); in unmountAll()
1833 mntent* mentry; in listMountedObbs() local
[all …]