Lines Matching refs:mnttab
37 #include <sys/mnttab.h>
87 static int smb_getzfsmount(const char *, struct mnttab *);
738 struct mnttab mnttab;
742 if ((rc = smb_getzfsmount(path, &mnttab)) == 0) {
743 resource = mnttab.mnt_special;
759 * mnttab entry.
764 struct mnttab mnttab;
767 if ((rc = smb_getzfsmount(path, &mnttab)) == 0)
768 (void) strlcpy(mountpoint, mnttab.mnt_mountp, len);
774 * Get the ZFS mnttab entry from a path. If the specified path isn't a ZFS
776 * matches a ZFS mnttab entry.
781 smb_getzfsmount(const char *path, struct mnttab *mnttab)
786 struct mnttab mntpref;
792 (void) memset(mnttab, '\0', sizeof (mnttab));
801 if (getmntany(fp, mnttab, &mntpref) == 0) {
802 if (mnttab->mnt_fstype == NULL)
805 if (strcmp(mnttab->mnt_fstype, MNTTYPE_ZFS) == 0)