Lines Matching refs:mentry
492 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
1834 while ((mentry = getmntent(fp)) != NULL) { in listMountedObbs()
1835 if (!strncmp(mentry->mnt_dir, loopDir, loopDirLen)) { in listMountedObbs()
1836 int fd = open(mentry->mnt_fsname, O_RDONLY | O_CLOEXEC); in listMountedObbs()
1865 mntent* mentry; in isMountpointMounted() local
1866 while ((mentry = getmntent(fp)) != NULL) { in isMountpointMounted()
1867 if (strcmp(mentry->mnt_dir, mp) == 0) { in isMountpointMounted()