View | Details | Raw Unified | Return to bug 20710
Collapse All | Expand All

(-)mount.c (-6 / +11 lines)
Lines 81-87 Link Here
81
int	mountfs __P((const char *, const char *, const char *,
81
int	mountfs __P((const char *, const char *, const char *,
82
			int, const char *, const char *));
82
			int, const char *, const char *));
83
void	remopt __P((char *, const char *));
83
void	remopt __P((char *, const char *));
84
void	prmount __P((struct statfs *));
84
void	prmount __P((struct statfs *, int verbose));
85
void	putfsent __P((const struct statfs *));
85
void	putfsent __P((const struct statfs *));
86
void	usage __P((void));
86
void	usage __P((void));
87
char   *flags2opts __P((int));
87
char   *flags2opts __P((int));
Lines 219-225 Link Here
219
				if (checkvfsname(mntbuf[i].f_fstypename,
219
				if (checkvfsname(mntbuf[i].f_fstypename,
220
				    vfslist))
220
				    vfslist))
221
					continue;
221
					continue;
222
				prmount(&mntbuf[i]);
222
				prmount(&mntbuf[i], verbose);
223
			}
223
			}
224
		}
224
		}
225
		exit(rval);
225
		exit(rval);
Lines 490-496 Link Here
490
			if (fstab_style)
490
			if (fstab_style)
491
				putfsent(&sf);
491
				putfsent(&sf);
492
			else
492
			else
493
				prmount(&sf);
493
				prmount(&sf, 1);
494
		}
494
		}
495
		break;
495
		break;
496
	}
496
	}
Lines 499-513 Link Here
499
}
499
}
500
500
501
void
501
void
502
prmount(sfp)
502
prmount(sfp, verbose)
503
	struct statfs *sfp;
503
	struct statfs *sfp;
504
	int verbose;
504
{
505
{
505
	int flags;
506
	int flags;
506
	struct opt *o;
507
	struct opt *o;
507
	struct passwd *pw;
508
	struct passwd *pw;
508
509
509
	(void)printf("%s on %s (%s", sfp->f_mntfromname, sfp->f_mntonname,
510
	(void)printf("%s on %s", sfp->f_mntfromname, sfp->f_mntonname);
510
	    sfp->f_fstypename);
511
	if (!verbose) {
512
	  putchar('\n');
513
	  return;
514
	}
515
	(void)printf(" (%s", sfp->f_fstypename);
511
516
512
	flags = sfp->f_flags & MNT_VISFLAGMASK;
517
	flags = sfp->f_flags & MNT_VISFLAGMASK;
513
	for (o = optnames; flags && o->o_opt; o++)
518
	for (o = optnames; flags && o->o_opt; o++)

Return to bug 20710