Lines Matching refs:mntent
345 struct mntent ent; in _g_get_unix_mounts()
348 struct mntent *mntent; in _g_get_unix_mounts() local
366 while ((mntent = getmntent_r (file, &ent, buf, sizeof (buf))) != NULL) in _g_get_unix_mounts()
369 while ((mntent = getmntent (file)) != NULL) in _g_get_unix_mounts()
382 if (mntent->mnt_fsname != NULL && in _g_get_unix_mounts()
383 mntent->mnt_fsname[0] == '/' && in _g_get_unix_mounts()
384 g_hash_table_lookup (mounts_hash, mntent->mnt_fsname)) in _g_get_unix_mounts()
388 mount_entry->mount_path = g_strdup (mntent->mnt_dir); in _g_get_unix_mounts()
389 if (strcmp (mntent->mnt_fsname, "/dev/root") == 0) in _g_get_unix_mounts()
392 mount_entry->device_path = g_strdup (mntent->mnt_fsname); in _g_get_unix_mounts()
393 mount_entry->filesystem_type = g_strdup (mntent->mnt_type); in _g_get_unix_mounts()
396 if (hasmntopt (mntent, MNTOPT_RO) != NULL) in _g_get_unix_mounts()
445 struct mnttab mntent; in _g_get_unix_mounts() local
460 while (! getmntent (file, &mntent)) in _g_get_unix_mounts()
464 mount_entry->mount_path = g_strdup (mntent.mnt_mountp); in _g_get_unix_mounts()
465 mount_entry->device_path = g_strdup (mntent.mnt_special); in _g_get_unix_mounts()
466 mount_entry->filesystem_type = g_strdup (mntent.mnt_fstype); in _g_get_unix_mounts()
469 if (hasmntopt (&mntent, MNTOPT_RO) != NULL) in _g_get_unix_mounts()
573 struct statfs *mntent = NULL; in _g_get_unix_mounts() local
579 if ((num_mounts = getmntinfo (&mntent, MNT_NOWAIT)) == 0) in _g_get_unix_mounts()
588 mount_entry->mount_path = g_strdup (mntent[i].f_mntonname); in _g_get_unix_mounts()
589 mount_entry->device_path = g_strdup (mntent[i].f_mntfromname); in _g_get_unix_mounts()
590 mount_entry->filesystem_type = g_strdup (mntent[i].f_fstypename); in _g_get_unix_mounts()
591 if (mntent[i].f_flags & MNT_RDONLY) in _g_get_unix_mounts()
688 struct mntent ent; in _g_get_unix_mount_points()
691 struct mntent *mntent; in _g_get_unix_mount_points() local
706 while ((mntent = getmntent_r (file, &ent, buf, sizeof (buf))) != NULL) in _g_get_unix_mount_points()
709 while ((mntent = getmntent (file)) != NULL) in _g_get_unix_mount_points()
712 if ((strcmp (mntent->mnt_dir, "ignore") == 0) || in _g_get_unix_mount_points()
713 (strcmp (mntent->mnt_dir, "swap") == 0)) in _g_get_unix_mount_points()
717 mount_entry->mount_path = g_strdup (mntent->mnt_dir); in _g_get_unix_mount_points()
718 if (strcmp (mntent->mnt_fsname, "/dev/root") == 0) in _g_get_unix_mount_points()
721 mount_entry->device_path = g_strdup (mntent->mnt_fsname); in _g_get_unix_mount_points()
722 mount_entry->filesystem_type = g_strdup (mntent->mnt_type); in _g_get_unix_mount_points()
725 if (hasmntopt (mntent, MNTOPT_RO) != NULL) in _g_get_unix_mount_points()
728 if (hasmntopt (mntent, "loop") != NULL) in _g_get_unix_mount_points()
733 if ((mntent->mnt_type != NULL && strcmp ("supermount", mntent->mnt_type) == 0) in _g_get_unix_mount_points()
735 || (hasmntopt (mntent, "user") != NULL in _g_get_unix_mount_points()
736 && hasmntopt (mntent, "user") != hasmntopt (mntent, "user_xattr")) in _g_get_unix_mount_points()
737 || hasmntopt (mntent, "pamconsole") != NULL in _g_get_unix_mount_points()
738 || hasmntopt (mntent, "users") != NULL in _g_get_unix_mount_points()
739 || hasmntopt (mntent, "owner") != NULL in _g_get_unix_mount_points()
761 struct mnttab mntent; in _g_get_unix_mount_points() local
776 while (! getmntent (file, &mntent)) in _g_get_unix_mount_points()
778 if ((strcmp (mntent.mnt_mountp, "ignore") == 0) || in _g_get_unix_mount_points()
779 (strcmp (mntent.mnt_mountp, "swap") == 0)) in _g_get_unix_mount_points()
784 mount_entry->mount_path = g_strdup (mntent.mnt_mountp); in _g_get_unix_mount_points()
785 mount_entry->device_path = g_strdup (mntent.mnt_special); in _g_get_unix_mount_points()
786 mount_entry->filesystem_type = g_strdup (mntent.mnt_fstype); in _g_get_unix_mount_points()
789 if (hasmntopt (&mntent, MNTOPT_RO) != NULL) in _g_get_unix_mount_points()
792 if (hasmntopt (&mntent, "lofs") != NULL) in _g_get_unix_mount_points()
796 if ((mntent.mnt_fstype != NULL) in _g_get_unix_mount_points()
798 || (hasmntopt (&mntent, "user") != NULL in _g_get_unix_mount_points()
799 && hasmntopt (&mntent, "user") != hasmntopt (&mntent, "user_xattr")) in _g_get_unix_mount_points()
800 || hasmntopt (&mntent, "pamconsole") != NULL in _g_get_unix_mount_points()
801 || hasmntopt (&mntent, "users") != NULL in _g_get_unix_mount_points()
802 || hasmntopt (&mntent, "owner") != NULL in _g_get_unix_mount_points()
927 struct mntent *mntent; in _g_get_unix_mount_points() local
931 AixMountTableEntry mntent; in _g_get_unix_mount_points() local
942 while (!aix_fs_get (file, &mntent)) in _g_get_unix_mount_points()
944 if (strcmp ("cdrfs", mntent.mnt_fstype) == 0) in _g_get_unix_mount_points()
948 mount_entry->mount_path = g_strdup (mntent.mnt_mount); in _g_get_unix_mount_points()
949 mount_entry->device_path = g_strdup (mntent.mnt_special); in _g_get_unix_mount_points()
950 mount_entry->filesystem_type = g_strdup (mntent.mnt_fstype); in _g_get_unix_mount_points()
2143 struct mntent *entp;
2145 struct mntent ent;