Lines Matching refs:mnt
1037 struct mntent *mnt; in find_device() local
1048 while ((mnt = getmntent(mtab))) { in find_device()
1052 if (!strcmp(mnt->mnt_type, "btrfs") && in find_device()
1053 !stat(mnt->mnt_dir, &dst) && in find_device()
1056 get_default_subvol(mnt->mnt_dir, subvol); in find_device()
1061 if ((!strcmp(mnt->mnt_type, "ext2") || in find_device()
1062 !strcmp(mnt->mnt_type, "ext3") || in find_device()
1063 !strcmp(mnt->mnt_type, "ext4")) && in find_device()
1064 !stat(mnt->mnt_fsname, &dst) && in find_device()
1070 if ((!strcmp(mnt->mnt_type, "vfat")) && in find_device()
1071 !stat(mnt->mnt_fsname, &dst) && in find_device()
1077 if ((!strcmp(mnt->mnt_type, "fuseblk") /* ntfs-3g */ || in find_device()
1078 !strcmp(mnt->mnt_type, "ntfs")) && in find_device()
1079 !stat(mnt->mnt_fsname, &dst) && in find_device()
1087 if (!strcmp(mnt->mnt_type, "xfs") && !stat(mnt->mnt_fsname, &dst) && in find_device()
1096 if (!strcmp(mnt->mnt_type, "ufs") && !stat(mnt->mnt_fsname, &dst) && in find_device()
1107 devname = strdup(mnt->mnt_fsname); in find_device()