• Home
  • Raw
  • Download

Lines Matching refs:mntent

572   struct mntent ent;  in _g_get_unix_mounts()
575 struct mntent *mntent; in _g_get_unix_mounts() local
593 while ((mntent = getmntent_r (file, &ent, buf, sizeof (buf))) != NULL) in _g_get_unix_mounts()
596 while ((mntent = getmntent (file)) != NULL) in _g_get_unix_mounts()
612 if (mntent->mnt_fsname != NULL && in _g_get_unix_mounts()
613 mntent->mnt_fsname[0] == '/' && in _g_get_unix_mounts()
614 g_hash_table_lookup (mounts_hash, mntent->mnt_fsname)) in _g_get_unix_mounts()
617 if (g_strcmp0 (mntent->mnt_fsname, "/dev/root") == 0) in _g_get_unix_mounts()
620 device_path = mntent->mnt_fsname; in _g_get_unix_mounts()
623 if (hasmntopt (mntent, MNTOPT_RO) != NULL) in _g_get_unix_mounts()
628 mntent->mnt_dir, in _g_get_unix_mounts()
630 mntent->mnt_type, in _g_get_unix_mounts()
631 mntent->mnt_opts, in _g_get_unix_mounts()
718 struct mnttab mntent; in _g_get_unix_mounts() local
733 while (! getmntent (file, &mntent)) in _g_get_unix_mounts()
738 if (hasmntopt (&mntent, MNTOPT_RO) != NULL) in _g_get_unix_mounts()
742 mount_entry = create_unix_mount_entry (mntent.mnt_special, in _g_get_unix_mounts()
743 mntent.mnt_mountp, in _g_get_unix_mounts()
745 mntent.mnt_fstype, in _g_get_unix_mounts()
746 mntent.mnt_opts, in _g_get_unix_mounts()
842 struct statvfs *mntent = NULL; in _g_get_unix_mounts() local
844 struct statfs *mntent = NULL; in _g_get_unix_mounts()
862 bufsize = num_mounts * sizeof (*mntent); in _g_get_unix_mounts()
863 mntent = g_malloc (bufsize); in _g_get_unix_mounts()
865 num_mounts = getvfsstat (mntent, bufsize, ST_NOWAIT); in _g_get_unix_mounts()
867 num_mounts = getfsstat (mntent, bufsize, MNT_NOWAIT); in _g_get_unix_mounts()
879 if (mntent[i].f_flag & ST_RDONLY) in _g_get_unix_mounts()
881 if (mntent[i].f_flags & MNT_RDONLY) in _g_get_unix_mounts()
887 mount_entry = create_unix_mount_entry (mntent[i].f_mntfromname, in _g_get_unix_mounts()
888 mntent[i].f_mntonname, in _g_get_unix_mounts()
890 mntent[i].f_fstypename, in _g_get_unix_mounts()
897 g_free (mntent); in _g_get_unix_mounts()
1103 struct mntent ent; in _g_get_unix_mount_points()
1106 struct mntent *mntent; in _g_get_unix_mount_points() local
1121 while ((mntent = getmntent_r (file, &ent, buf, sizeof (buf))) != NULL) in _g_get_unix_mount_points()
1124 while ((mntent = getmntent (file)) != NULL) in _g_get_unix_mount_points()
1132 if ((strcmp (mntent->mnt_dir, "ignore") == 0) || in _g_get_unix_mount_points()
1133 (strcmp (mntent->mnt_dir, "swap") == 0) || in _g_get_unix_mount_points()
1134 (strcmp (mntent->mnt_dir, "none") == 0)) in _g_get_unix_mount_points()
1139 if (hasmntopt (mntent, "bind")) in _g_get_unix_mount_points()
1143 if (strcmp (mntent->mnt_fsname, "/dev/root") == 0) in _g_get_unix_mount_points()
1146 device_path = mntent->mnt_fsname; in _g_get_unix_mount_points()
1149 if (hasmntopt (mntent, MNTOPT_RO) != NULL) in _g_get_unix_mount_points()
1152 if (hasmntopt (mntent, "loop") != NULL) in _g_get_unix_mount_points()
1157 if ((mntent->mnt_type != NULL && strcmp ("supermount", mntent->mnt_type) == 0) in _g_get_unix_mount_points()
1159 || (hasmntopt (mntent, "user") != NULL in _g_get_unix_mount_points()
1160 && hasmntopt (mntent, "user") != hasmntopt (mntent, "user_xattr")) in _g_get_unix_mount_points()
1161 || hasmntopt (mntent, "pamconsole") != NULL in _g_get_unix_mount_points()
1162 || hasmntopt (mntent, "users") != NULL in _g_get_unix_mount_points()
1163 || hasmntopt (mntent, "owner") != NULL in _g_get_unix_mount_points()
1169 mntent->mnt_dir, in _g_get_unix_mount_points()
1170 mntent->mnt_type, in _g_get_unix_mount_points()
1171 mntent->mnt_opts, in _g_get_unix_mount_points()
1196 struct mnttab mntent; in _g_get_unix_mount_points() local
1211 while (! getmntent (file, &mntent)) in _g_get_unix_mount_points()
1217 if ((strcmp (mntent.mnt_mountp, "ignore") == 0) || in _g_get_unix_mount_points()
1218 (strcmp (mntent.mnt_mountp, "swap") == 0) || in _g_get_unix_mount_points()
1219 (strcmp (mntent.mnt_mountp, "none") == 0)) in _g_get_unix_mount_points()
1223 if (hasmntopt (&mntent, MNTOPT_RO) != NULL) in _g_get_unix_mount_points()
1226 if (hasmntopt (&mntent, "lofs") != NULL) in _g_get_unix_mount_points()
1230 if ((mntent.mnt_fstype != NULL) in _g_get_unix_mount_points()
1232 || (hasmntopt (&mntent, "user") != NULL in _g_get_unix_mount_points()
1233 && hasmntopt (&mntent, "user") != hasmntopt (&mntent, "user_xattr")) in _g_get_unix_mount_points()
1234 || hasmntopt (&mntent, "pamconsole") != NULL in _g_get_unix_mount_points()
1235 || hasmntopt (&mntent, "users") != NULL in _g_get_unix_mount_points()
1236 || hasmntopt (&mntent, "owner") != NULL in _g_get_unix_mount_points()
1241 mount_point = create_unix_mount_point (mntent.mnt_special, in _g_get_unix_mount_points()
1242 mntent.mnt_mountp, in _g_get_unix_mount_points()
1243 mntent.mnt_fstype, in _g_get_unix_mount_points()
1244 mntent.mnt_mntopts, in _g_get_unix_mount_points()
1371 struct mntent *mntent; in _g_get_unix_mount_points() local
1375 AixMountTableEntry mntent; in _g_get_unix_mount_points() local
1386 while (!aix_fs_get (file, &mntent)) in _g_get_unix_mount_points()
1388 if (strcmp ("cdrfs", mntent.mnt_fstype) == 0) in _g_get_unix_mount_points()
1390 mount_point = create_unix_mount_point (mntent.mnt_special, in _g_get_unix_mount_points()
1391 mntent.mnt_mount, in _g_get_unix_mount_points()
1392 mntent.mnt_fstype, in _g_get_unix_mount_points()
1393 mntent.mnt_options, in _g_get_unix_mount_points()
3135 struct mntent *entp;
3137 struct mntent ent;