From 461bb71e4fc9e5baa18691038b529148e73fa975 Mon Sep 17 00:00:00 2001 From: Kirk McKusick Date: Wed, 1 Dec 1999 02:16:51 +0000 Subject: [PATCH] Print out the filesystem read counts now collected by the kernel. Submitted by: Craig A Soules Reviewed by: Kirk McKusick --- sbin/mount/mount.c | 3 +++ sbin/mount_ifs/mount.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index 1ba9e570a7f..8510db5d013 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 1ba9e570a7f..8510db5d013 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"); }