summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authormckusick <mckusick@FreeBSD.org>1999-12-01 02:16:51 +0000
committermckusick <mckusick@FreeBSD.org>1999-12-01 02:16:51 +0000
commite037a1e9e92edac5f41a5c944fabf729989719cd (patch)
tree9d1471a13495dbadf64eec0c94b283deaf920a07 /sbin
parenta7a8ed1423843607656950db4061ebb31fd1e7d0 (diff)
downloadFreeBSD-src-e037a1e9e92edac5f41a5c944fabf729989719cd.zip
FreeBSD-src-e037a1e9e92edac5f41a5c944fabf729989719cd.tar.gz
Print out the filesystem read counts now collected by the kernel.
Submitted by: Craig A Soules <soules+@andrew.cmu.edu> Reviewed by: Kirk McKusick <mckusick@mckusick.com>
Diffstat (limited to 'sbin')
-rw-r--r--sbin/mount/mount.c3
-rw-r--r--sbin/mount_ifs/mount.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c
index 1ba9e57..8510db5 100644
--- a/sbin/mount/mount.c
+++ b/sbin/mount/mount.c
@@ -524,6 +524,9 @@ prmount(sfp)
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");
}
diff --git a/sbin/mount_ifs/mount.c b/sbin/mount_ifs/mount.c
index 1ba9e57..8510db5 100644
--- a/sbin/mount_ifs/mount.c
+++ b/sbin/mount_ifs/mount.c
@@ -524,6 +524,9 @@ prmount(sfp)
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");
}
OpenPOWER on IntegriCloud