FreeBSD Bugzilla – Attachment 10309 Details for
Bug 20710
mount output is to long, and "mount -v" is useless.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.23 KB, created by
mwm
on 2000-08-18 22:40:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
mwm
Created:
2000-08-18 22:40:01 UTC
Size:
1.23 KB
patch
obsolete
>--- mount.c-orig Fri Aug 18 16:20:39 2000 >+++ mount.c Fri Aug 18 16:22:23 2000 >@@ -81,7 +81,7 @@ > int mountfs __P((const char *, const char *, const char *, > int, const char *, const char *)); > void remopt __P((char *, const char *)); >-void prmount __P((struct statfs *)); >+void prmount __P((struct statfs *, int verbose)); > void putfsent __P((const struct statfs *)); > void usage __P((void)); > char *flags2opts __P((int)); >@@ -219,7 +219,7 @@ > if (checkvfsname(mntbuf[i].f_fstypename, > vfslist)) > continue; >- prmount(&mntbuf[i]); >+ prmount(&mntbuf[i], verbose); > } > } > exit(rval); >@@ -490,7 +490,7 @@ > if (fstab_style) > putfsent(&sf); > else >- prmount(&sf); >+ prmount(&sf, 1); > } > break; > } >@@ -499,15 +499,20 @@ > } > > void >-prmount(sfp) >+prmount(sfp, verbose) > struct statfs *sfp; >+ int verbose; > { > int flags; > struct opt *o; > struct passwd *pw; > >- (void)printf("%s on %s (%s", sfp->f_mntfromname, sfp->f_mntonname, >- sfp->f_fstypename); >+ (void)printf("%s on %s", sfp->f_mntfromname, sfp->f_mntonname); >+ if (!verbose) { >+ putchar('\n'); >+ return; >+ } >+ (void)printf(" (%s", sfp->f_fstypename); > > flags = sfp->f_flags & MNT_VISFLAGMASK; > for (o = optnames; flags && o->o_opt; o++)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 20710
: 10309