Lines Matching refs:mnt
98 struct mntent *mnt;
127 while ((mnt = getmntent (f)) != NULL) {
128 if (mnt->mnt_fsname[0] != '/')
130 if (strcmp(file, mnt->mnt_fsname) == 0)
132 if (stat(mnt->mnt_fsname, &st_buf) == 0) {
137 if (check_loop_mounted(mnt->mnt_fsname,
150 if (mnt == 0) {
177 if (stat(mnt->mnt_dir, &st_buf) < 0) {
182 mtab_file, mnt->mnt_dir);
191 mtab_file, file, mnt->mnt_dir);
200 if (hasmntopt(mnt, MNTOPT_RO))
205 strncpy(mtpt, mnt->mnt_dir, mtlen);
212 if (!strcmp(mnt->mnt_dir, "/")) {