Lines Matching refs:mentry
74 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
172 while ((mentry = getmntent(fp)) != NULL) { in remount_ro()
173 if (!is_block_device(mentry->mnt_fsname) || in remount_ro()
174 !has_mount_option(mentry->mnt_opts, "ro")) { in remount_ro()
177 mntent_list* item = find_item(&rw_entries, mentry->mnt_fsname); in remount_ro()