Lines Matching refs:mnp
235 struct mnttab *mnp; in build_mnttable() local
256 mnp = &mnts[nmnt++]; in build_mnttable()
261 (void) memset(mnp, 0, sizeof (*mnp)); in build_mnttable()
264 mnp->mnt_special = strdup(mnt.mnt_special); in build_mnttable()
266 mnp->mnt_mntopts = strdup(mnt.mnt_mntopts); in build_mnttable()
267 mnp->mnt_mountp = strdup(mnt.mnt_mountp); in build_mnttable()
268 mnp->mnt_fstype = strdup(mnt.mnt_fstype); in build_mnttable()
269 if ((mnt.mnt_special != NULL && mnp->mnt_special == NULL) || in build_mnttable()
270 (mnt.mnt_mntopts != NULL && mnp->mnt_mntopts == NULL) || in build_mnttable()
271 mnp->mnt_mountp == NULL || mnp->mnt_fstype == NULL) { in build_mnttable()
339 struct mnttab *mnp; in resolve_lofs() local
342 for (mnp = resolve_lofs_mnt_max - 1; mnp >= resolve_lofs_mnts; in resolve_lofs()
343 mnp--) { in resolve_lofs()
344 if (mnp->mnt_fstype == NULL || in resolve_lofs()
345 mnp->mnt_mountp == NULL || in resolve_lofs()
346 mnp->mnt_special == NULL) in resolve_lofs()
348 len = strlen(mnp->mnt_mountp); in resolve_lofs()
349 if (strncmp(mnp->mnt_mountp, path, len) == 0 && in resolve_lofs()
353 if (mnp < resolve_lofs_mnts) in resolve_lofs()
356 if (strcmp(mnp->mnt_fstype, MNTTYPE_LOFS) != 0) in resolve_lofs()
367 if (mnp->mnt_mntopts != NULL && in resolve_lofs()
368 (cp = strstr(mnp->mnt_mntopts, MNTOPT_RO)) != in resolve_lofs()
370 (cp == mnp->mnt_mntopts || cp[-1] == ',') && in resolve_lofs()
375 (strncmp(mnp->mnt_special, altroot, arlen) != 0 || in resolve_lofs()
376 (mnp->mnt_special[arlen] != '\0' && in resolve_lofs()
377 mnp->mnt_special[arlen] != '/'))) { in resolve_lofs()
382 mnp->mnt_special, path + len); in resolve_lofs()
396 struct mnttab *mnp; in check_lofs_needed() local
407 for (mnp = resolve_lofs_mnts; mnp < resolve_lofs_mnt_max; in check_lofs_needed()
408 mnp++) { in check_lofs_needed()
409 if (strcmp(mnp->mnt_special, fsptr->zone_fs_special) == 0) in check_lofs_needed()
412 if (mnp >= resolve_lofs_mnt_max) in check_lofs_needed()
418 (void) strlcpy(fsptr->zone_fs_special, mnp->mnt_mountp, in check_lofs_needed()
675 struct mnttab *mnp; in unmount_filesystems() local
693 mnp = &mnts[nmnt - i - 1]; /* access in reverse order */ in unmount_filesystems()
694 path = mnp->mnt_mountp; in unmount_filesystems()
703 if (is_remote_fstype(mnp->mnt_fstype, remote_fstypes)) { in unmount_filesystems()
4365 struct mnttab *mnp; in duplicate_reachable_path() local
4373 for (mnp = resolve_lofs_mnts; mnp < resolve_lofs_mnt_max; mnp++) { in duplicate_reachable_path()
4374 if (mnp->mnt_fstype == NULL || in duplicate_reachable_path()
4375 strcmp(MNTTYPE_LOFS, mnp->mnt_fstype) != 0) in duplicate_reachable_path()
4378 if (mnp->mnt_special != NULL && in duplicate_reachable_path()
4379 stat64(mnp->mnt_special, &zst) != -1 && in duplicate_reachable_path()
4383 rootpath, mnp->mnt_mountp); in duplicate_reachable_path()