Lines Matching defs:ment

88 	struct mnttab	ment;		/* the mnttab data */
298 lmp = getmntlast(mntll, NULL, mp->ment.mnt_mountp);
300 if (lmp && strcmp(lmp->ment.mnt_special,
301 mp->ment.mnt_special)) {
322 doexec(&mp->ment);
330 doexec(struct mnttab *ment)
337 getpid(), ment->mnt_mountp);
341 if ((ment->mnt_fstype != NULL) || Vflg) {
347 if (strlen(ment->mnt_fstype) > (size_t)FSTYPE_MAX) {
350 myname, ment->mnt_fstype, FSTYPE_MAX);
355 sprintf(full_path, "%s/%s/%s", fs_path, ment->mnt_fstype,
357 sprintf(alter_path, "%s/%s/%s", alt_path, ment->mnt_fstype,
375 newargv[ii++] = (ment->mnt_mountp)
376 ? ment->mnt_mountp : ment->mnt_special;
422 myname, ment->mnt_fstype ? ment->mnt_fstype : "<null>");
437 if (((ret = umount2(ment->mnt_mountp, MS_FORCE)) < 0) &&
440 ret = umount2(ment->mnt_special, MS_FORCE);
442 if (((ret = umount2(ment->mnt_mountp, 0)) < 0) &&
444 ret = umount2(ment->mnt_special, 0);
448 rpterr(ment->mnt_mountp);
537 if (mntp && (strcmp(mlist->ment.mnt_mountp, mntp) == 0)) {
542 if (specp && (strcmp(mlist->ment.mnt_special, specp) == 0)) {
672 if (fsstrinlist(mp->ment.mnt_mountp, keeplist))
674 mp->mlevel = fsgetmlevel(mp->ment.mnt_mountp);
675 if (mp->ment.mnt_fstype &&
676 (strcmp(mp->ment.mnt_fstype, MNTTYPE_LOFS) == 0))
717 if (mp->ment.mnt_fstype &&
718 (strcmp(mp->ment.mnt_fstype, MNTTYPE_LOFS) == 0))
721 mp->mlevel = fsgetmlevel(mp->ment.mnt_mountp);
819 getpid(), pid, mp->ment.mnt_mountp);
827 doexec(&mp->ment);
916 if (mp->ment.mnt_fstype &&
917 (strcmp(mp->ment.mnt_fstype, MNTTYPE_LOFS) == 0))
926 new_mountent(struct mnttab *ment)
935 if (ment->mnt_special &&
936 (new->ment.mnt_special = strdup(ment->mnt_special)) == NULL)
938 if (ment->mnt_mountp &&
939 (new->ment.mnt_mountp = strdup(ment->mnt_mountp)) == NULL)
941 if (ment->mnt_fstype &&
942 (new->ment.mnt_fstype = strdup(ment->mnt_fstype)) == NULL)