Lines Matching defs:mnp

236 	struct mnttab *mnp;
257 mnp = &mnts[nmnt++];
262 (void) memset(mnp, 0, sizeof (*mnp));
265 mnp->mnt_special = strdup(mnt.mnt_special);
267 mnp->mnt_mntopts = strdup(mnt.mnt_mntopts);
268 mnp->mnt_mountp = strdup(mnt.mnt_mountp);
269 mnp->mnt_fstype = strdup(mnt.mnt_fstype);
270 if ((mnt.mnt_special != NULL && mnp->mnt_special == NULL) ||
271 (mnt.mnt_mntopts != NULL && mnp->mnt_mntopts == NULL) ||
272 mnp->mnt_mountp == NULL || mnp->mnt_fstype == NULL) {
340 struct mnttab *mnp;
343 for (mnp = resolve_lofs_mnt_max - 1; mnp >= resolve_lofs_mnts;
344 mnp--) {
345 if (mnp->mnt_fstype == NULL ||
346 mnp->mnt_mountp == NULL ||
347 mnp->mnt_special == NULL)
349 len = strlen(mnp->mnt_mountp);
350 if (strncmp(mnp->mnt_mountp, path, len) == 0 &&
354 if (mnp < resolve_lofs_mnts)
357 if (strcmp(mnp->mnt_fstype, MNTTYPE_LOFS) != 0)
368 if (mnp->mnt_mntopts != NULL &&
369 (cp = strstr(mnp->mnt_mntopts, MNTOPT_RO)) !=
371 (cp == mnp->mnt_mntopts || cp[-1] == ',') &&
376 (strncmp(mnp->mnt_special, altroot, arlen) != 0 ||
377 (mnp->mnt_special[arlen] != '\0' &&
378 mnp->mnt_special[arlen] != '/'))) {
383 mnp->mnt_special, path + len);
397 struct mnttab *mnp;
408 for (mnp = resolve_lofs_mnts; mnp < resolve_lofs_mnt_max;
409 mnp++) {
410 if (strcmp(mnp->mnt_special, fsptr->zone_fs_special) == 0)
413 if (mnp >= resolve_lofs_mnt_max)
419 (void) strlcpy(fsptr->zone_fs_special, mnp->mnt_mountp,
676 struct mnttab *mnp;
694 mnp = &mnts[nmnt - i - 1]; /* access in reverse order */
695 path = mnp->mnt_mountp;
704 if (is_remote_fstype(mnp->mnt_fstype, remote_fstypes)) {
4366 struct mnttab *mnp;
4374 for (mnp = resolve_lofs_mnts; mnp < resolve_lofs_mnt_max; mnp++) {
4375 if (mnp->mnt_fstype == NULL ||
4376 strcmp(MNTTYPE_LOFS, mnp->mnt_fstype) != 0)
4379 if (mnp->mnt_special != NULL &&
4380 stat64(mnp->mnt_special, &zst) != -1 &&
4384 rootpath, mnp->mnt_mountp);