Home | History | Annotate | Download | only in libcutils

Lines Matching full:mentry

74     struct mntent* mentry;
80 while ((mentry = getmntent(fp)) != NULL) {
81 if (is_block_device(mentry->mnt_fsname) &&
82 has_mount_option(mentry->mnt_opts, "rw")) {
84 item->entry = *mentry;
85 item->entry.mnt_fsname = strdup(mentry->mnt_fsname);
86 item->entry.mnt_dir = strdup(mentry->mnt_dir);
87 item->entry.mnt_type = strdup(mentry->mnt_type);
88 item->entry.mnt_opts = strdup(mentry->mnt_opts);
136 struct mntent* mentry;
172 while ((mentry = getmntent(fp)) != NULL) {
173 if (!is_block_device(mentry->mnt_fsname) ||
174 !has_mount_option(mentry->mnt_opts, "ro")) {
177 mntent_list* item = find_item(&rw_entries, mentry->mnt_fsname);