diff options
author | sheldonh <sheldonh@FreeBSD.org> | 2000-08-23 09:59:25 +0000 |
---|---|---|
committer | sheldonh <sheldonh@FreeBSD.org> | 2000-08-23 09:59:25 +0000 |
commit | b55c3488b18998777c70bebb1753780a97b4e9b9 (patch) | |
tree | 36de5a27c5efa5e55c458167e00999d29d539837 /sbin/mount | |
parent | 3ae96063415d4d28794d6bed936934349669f439 (diff) | |
download | FreeBSD-src-b55c3488b18998777c70bebb1753780a97b4e9b9.zip FreeBSD-src-b55c3488b18998777c70bebb1753780a97b4e9b9.tar.gz |
Only print information about reads and writes when the -v flag (for
verbose mode) is specified. This should really have been the case
when this extra cruft was first introduced in rev 1.23.
PR: 20710
Reported by: Mike Meyer <mwm@mired.org>
Diffstat (limited to 'sbin/mount')
-rw-r--r-- | sbin/mount/mount.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index 65bcb5d..3177776 100644 --- a/sbin/mount/mount.c +++ b/sbin/mount/mount.c @@ -522,12 +522,14 @@ prmount(sfp) else (void)printf("%d", sfp->f_owner); } - if (sfp->f_syncwrites != 0 || sfp->f_asyncwrites != 0) - (void)printf(", writes: sync %ld async %ld", - sfp->f_syncwrites, sfp->f_asyncwrites); - if (sfp->f_syncreads != 0 || sfp->f_asyncreads != 0) - (void)printf(", reads: sync %ld async %ld", - sfp->f_syncreads, sfp->f_asyncreads); + if (verbose) { + if (sfp->f_syncwrites != 0 || sfp->f_asyncwrites != 0) + (void)printf(", writes: sync %ld async %ld", + sfp->f_syncwrites, sfp->f_asyncwrites); + if (sfp->f_syncreads != 0 || sfp->f_asyncreads != 0) + (void)printf(", reads: sync %ld async %ld", + sfp->f_syncreads, sfp->f_asyncreads); + } (void)printf(")\n"); } |