History log of /freebsd-10.0-release/usr.bin/nfsstat/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


251585 09-Jun-2013 rmacklem

Modify nfsstat.c so that it prints out an error when a non-root
user attempts to use the "-m" option and it fails.

Requested by: danny@cs.huji.ac.il
MFC after: 2 weeks


250158 01-May-2013 rmacklem

Document that the NFSv4 server statistics are operation counts and
not RPC counts.
This is a content change.

MFC after: 2 weeks


243784 02-Dec-2012 rmacklem

Document the "-m" option added by r243783.
This is a content change.

Reviewed by: alfred
MFC after: 2 weeks


243783 02-Dec-2012 rmacklem

Add a "-m" option to nfsstat, which dumps out the
actual options used by all NFS mounts. Works for
the new/default NFS client only.

Reviewed by: alfred
MFC after: 2 weeks


238701 22-Jul-2012 hrs

Fix a bug which prevents "nfsstat -W" for server statistics from working.


225113 23-Aug-2011 rmacklem

Fix nfsstat(1) so that it prints out correct stats for the
new NFS server when the "-e" option is not used. The bug was
that srvrpccnt[] was being indexed by NFSPROC_XXX when it needs
to be indexed by NFSV4OP_XXX.

Tested by: hrs
Approved by: re (bz)


225109 23-Aug-2011 rmacklem

Fix nfsstat(1) so that it prints out correct stats for the
new NFS server when the "-w" option is used. The problem was
spotted by hrs@ during testing where srvrpcnt[] must be indexed
by NFSV4OP_XXX and not NFSPROC_XXX.

Submitted by: hrs
Approved by: re (bz)
MFC after: 2 weeks


221973 15-May-2011 rmacklem

Change the sysctl naming for the old and new NFS clients
to vfs.oldnfs.xxx and vfs.nfs.xxx respectively. This makes
the default nfs client use vfs.nfs.xxx after r221124.


221492 05-May-2011 ru

- Add a forgotten -o to usage().
- Sync usage() with manpage's SYNOPSIS.


221491 05-May-2011 ru

[mdoc] remove a hard sentence break.


221457 04-May-2011 rmacklem

Update nfsstat.1 to reflect the changes done to nfsstat(1)
by r221455. This includes a new "-o" option for displaying
statistics from the old NFS client/server and a slightly
different description for the "-e" option.
This is a content change.


221455 04-May-2011 rmacklem

Modify nfsstat(1) so that it reports statistics for the
new NFS client/server by default, in a format compatible
with the old NFS client/server. Also add a "-o" flag that
forces nfsstat(1) to get statistics for the old NFS
client/server.


221454 04-May-2011 rmacklem

Modify nfsstat(1) so that it prints out the buffer cache
stats in the same way for the new client as the old one.

MFC after: 2 weeks


221440 04-May-2011 rmacklem

Fix nfsstat.c so that the "-z" option works for the new
NFS subsystem.

MFC after: 2 weeks


221435 04-May-2011 rmacklem

Revert r221308, since it incorrectly zero'd both client and
server stats when "-c" or "-s" was specified.


221309 01-May-2011 rmacklem

Fix nfsstat.1 to indicate that "-z" now works for
the new NFS subsystems after r221308.
This is a content change.

MFC after: 2 weeks


221308 01-May-2011 rmacklem

Fix nfsstat so that the "-z" option works for the
new NFS subsystem.

MFC after: 2 weeks


220596 13-Apr-2011 ru

Show client's access cache statistics.


216370 11-Dec-2010 joel

Remove the advertising clause from UCB copyrighted files in usr.bin. This
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change

Also add $FreeBSD$ to a few files to keep svn happy.

Discussed with: imp, rwatson


201386 02-Jan-2010 ed

Build usr.bin/ with WARNS=6 by default.

Also add some missing $FreeBSD$ to keep svn happy.


200462 13-Dec-2009 delphij

Revert most part of 200420 as requested, as more review and polish is
needed.


200420 11-Dec-2009 delphij

Remove unneeded header includes from usr.bin/ except contributed code.

Tested with: make universe


194880 24-Jun-2009 dfr

Don't use sys/nfs/rpcv2.h - it is part of the old kernel RPC implementation
and will be removed.


194792 23-Jun-2009 delphij

Use C99 initialization when necessary; apply static to internal rountines.
This makes nfsstat WARNS=3 clean.


194190 14-Jun-2009 ed

Include <sys/module.h> for modfind().

Submitted by: Pawel Worach


193258 01-Jun-2009 rmacklem

Change the "-4" option flag to "-e" since it does not refer to IPv4
and to make it consistent with the flag used by nfsd and mountd.

Approved by: kib (mentor)


192762 25-May-2009 rmacklem

Add the "-4" option to nfsstat, so that it will reports stats
for the experimental nfs subsystem when that option is specified.

Approved by: kib (mentor)


172759 18-Oct-2007 jhb

Add a -z flag to nfsstat which zeros the NFS statistics after displaying
them.

MFC after: 1 week
Requested by: ps
Submitted by: ps (6 years ago)


165546 25-Dec-2006 ru

Fix markup.


131990 11-Jul-2004 stefanf

Fix a few cases that relied on 'implicit int' (constraint violation in C99).


131491 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


96247 09-May-2002 joe

Replace /kernel with /boot/kernel/kernel.

PR: docs/37757
Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org>


92921 22-Mar-2002 imp

remove __P


87628 10-Dec-2001 dwmalone

Style improvements recommended by Bruce as a follow up to some
of the recent WARNS commits. The idea is:

1) FreeBSD id tags should follow vendor tags.
2) Vendor tags should not be compiled (though copyrights probably should).
3) There should be no blank line between including cdefs and __FBSDIF.


83653 18-Sep-2001 peter

Userland part of nfs client/server split and cleanup.


79535 10-Jul-2001 ru

mdoc(7) police: removed HISTORY info from the .Os call.


77207 25-May-2001 tmm

Fix the error buffer passed to kvm_openfiles to have a correct length
of _POSIX2_LINE_MAX.

MFC after: 3 days


74655 22-Mar-2001 tmm

Take setgid kmem away from nfsstat, it has not needed it for some time
now.

Approved by: rwatson


65428 04-Sep-2000 imp

getopt and friends are declared in <unistd.h>
getopt returns -1 not EOF.


54675 16-Dec-1999 obrien

Rev 1.9 did not follow style(9) in ordering.


54674 16-Dec-1999 obrien

Options added in rev 1.14 were not documented in usage().


52493 25-Oct-1999 dillon

Add -c, -s, and -W options to nfsstat. Improve interval output and add
wide-format option to get client-side ops and cache statistics on a single
line.

Change client side ops to the number of attempted ops, whether cached or
not, rather then just the number of rpc's that went through to the server.
This brings nfsstat inline with systat -vm and vmstat and reduces
confusion. The combined cache percentage stats now available via
'nfsstat -cW 1' becomes very useful.


50477 28-Aug-1999 peter

$Id$ -> $FreeBSD$


40638 25-Oct-1998 bde

Backout out previous commit. The bug was in the kernel.


40627 24-Oct-1998 msmith

Use sysctlbyname() to locate the vfs.nfs.nfsstats node.
Submitted by: Daniel Rock <rock@cs.uni-sb.de>


32649 20-Jan-1998 bde

Merged from Lite2. This was mostly already done, mostly indirectly
via wollman's changes in rev.1.2 being adopted by Lite2 and the
nfsv3 changes in rev.1.3 being adopted by both FreeBSD and Lite2.
We were only missing lookup of the type number for nfs (MOUNT_NFS
doesn't exist in Lite2).


25189 27-Apr-1997 jmg

``appears'' -> ``appeared'' (closes PR#3393, Submitted-by: Josh Gilliam)

add missing Id's
other minor clean ups


24360 29-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


23012 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


14516 11-Mar-1996 hsu

From Lite2: rename fs to vfs.


13511 20-Jan-1996 mpp

Fix a variety of minor typos and cross references in a bunch of
man pages.

Masanobu Saitoh <msaitoh@spa.is.uec.ac.jp>
Giles Lean <giles@nemeton.com.au>
<soda@sra.co.jp>


11936 30-Oct-1995 phk

<sys/user.h> -> <sys/time.h>

Spotted by: bde


11914 29-Oct-1995 phk

#include <sys/user.h>


9336 27-Jun-1995 dfr

Changes to support version 3 of the NFS protocol.
The version 2 support has been tested (client+server) against FreeBSD-2.0,
IRIX 5.3 and FreeBSD-current (using a loopback mount). The version 2 support
is stable AFAIK.
The version 3 support has been tested with a loopback mount and minimally
against an IRIX 5.3 server. It needs more testing and may have problems.
I have patched amd to support the new variable length filehandles although
it will still only use version 2 of the protocol.

Before booting a kernel with these changes, nfs clients will need to at least
build and install /usr/sbin/mount_nfs. Servers will need to build and
install /usr/sbin/mountd.

NFS diskless support is untested.

Obtained from: Rick Macklem <rick@snowhite.cis.uoguelph.ca>


3819 23-Oct-1994 wollman

Use new NFS sysctl interface to get statistics rather than reading /dev/kmem,
unless the user specifies a dead kernel to operate on.


1856 05-Aug-1994 dg

Converted 'vmunix' to 'kernel'.


1591 27-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1590,
which included commits to RCS files with non-trunk default branches.