Date: Fri, 18 Aug 2000 16:28:18 -0500 (CDT) From: Mike Meyer <mwm@mired.org> To: "Justin W. Pauler" <jwpauler@jwpages.com> Cc: questions@freebsd.org Subject: FreeBSD Feature/Question Message-ID: <14749.43634.779083.822711@guru.mired.org> In-Reply-To: <10853366@toto.iv>
next in thread | previous in thread | raw e-mail | index | archive | help
--hLTxmxZC1v Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit Justin W. Pauler writes: > I'm BACK! Once again :P This time i'll try to keep it short, I promise... > 1. FreeBSD Feature > My suggesstion? Make the output something more like 'df'. In this scenario > you would have a column for the slice, the mount point and then > reads/writes, the file system and such. Having these multiple columns, > would clean it up quite a bit. Try mount -p - that's a lot easier to read. Actually, looking over the sources, "mount" and "mount -v" do the same thing. How about if "mount" skipped all the stats, and "mount -v" do the same thing. How about a patch so that "mount" skipped all of the stuff in parenthesis? Actually, that's so trivial, it's attached. > 2. Let me re-ask this question. Has anyone heard of an OPL-SAx soundcard > driver? When I last asked this question someone said "it may be fixed by a > cvsup". Uh-uh. No go. It's in -current, and you should be able to just do "device pcm" to pick it up. If you're not running -current, what are you running? Have you read either the LINT or NOTES files for the the version you're running? How about the man page for pcm? > device pcm > device snd > device opl0 pcm & snd both do the same thing, so this is a mistake. <mike --hLTxmxZC1v Content-Type: text/plain Content-Description: Patch for sbin/mount/mount.c to make -v with no args usefull Content-Disposition: inline; filename="md" Content-Transfer-Encoding: 7bit --- 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++) --hLTxmxZC1v-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14749.43634.779083.822711>