Lines Matching defs:mnt
104 tsol_mnt_free(struct mnttab *mnt)
106 if (mnt->mnt_special)
107 free(mnt->mnt_special);
108 if (mnt->mnt_mountp)
109 free(mnt->mnt_mountp);
110 if (mnt->mnt_fstype)
111 free(mnt->mnt_fstype);
112 if (mnt->mnt_mntopts)
113 free(mnt->mnt_mntopts);
114 free(mnt);
125 struct mnttab *mnt = mlp->mntl_mnt;
127 if (mnt)
128 tsol_mnt_free(mnt);
136 mntdup(struct mnttab *mnt)
149 new->mnt_special = strdup(mnt->mnt_special);
154 new->mnt_mountp = strdup(mnt->mnt_mountp);
159 new->mnt_fstype = strdup(mnt->mnt_fstype);
164 new->mnt_mntopts = strdup(mnt->mnt_mntopts);
178 struct mnttab mnt;
185 while (getmntent(mounted, &mnt) == NULL) {
192 mntl->mntl_mnt = mntdup((struct mnttab *)(&mnt));
261 struct mnttab *mnt = mlp->mntl_mnt;
268 if (subpath(globalpath, mnt->mnt_mountp) != 0)
270 if (strcmp(mnt->mnt_fstype, MNTTYPE_AUTOFS))
274 (void) strncpy(mntopts, mnt->mnt_mntopts, MAXPATHLEN);
287 len = strlen(mnt->mnt_mountp);
289 mountmatch = mnt;
308 struct mnttab *mnt = mlp->mntl_mnt;
311 mnt->mnt_special) != 0)
313 if (strcmp(mnt->mnt_fstype, MNTTYPE_AUTOFS))
315 if (strstr(mnt->mnt_mntopts, ZONE_OPT) != NULL)
322 mp_len = strlen(mnt->mnt_mountp);
328 if (strncmp(mnt->mnt_mountp, p, mp_len) == 0) {
333 (void) strncpy(globalpath, mnt->mnt_mountp,
379 struct mnttab *mnt = mlp->mntl_mnt;
382 if (subpath(globalpath, mnt->mnt_mountp) != 0)
384 len = strlen(mnt->mnt_mountp);
386 mountmatch = mnt;