Searched refs:mentry (Results 1 – 2 of 2) sorted by relevance
74 struct mntent* mentry; in find_rw() local80 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 …]
492 mntent* mentry; in unmount_tree() local493 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() local667 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 …]