mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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>
This commit is contained in:
parent
b87db7cec0
commit
c62ffab640
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=65023
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue