freebsd-skq/sys/fs/nfs
cperciva b7810553a1 Reduce NFS "NFSv4( mounted on)? fileid > 32bits" log spam.
Rather than printing a warning for every time we receive a fileid > 2^32
from the NFS server, count warnings and print at most one of each warning
type per minute, e.g.,

Nov 15 05:17:34 ip-172-30-1-221 kernel: NFSv4 fileid > 32bits (24730 occurrences)
Nov 15 05:17:56 ip-172-30-1-221 kernel: NFSv4 mounted on fileid > 32bits (178 occurrences)
Nov 15 05:18:53 ip-172-30-1-221 kernel: NFSv4 fileid > 32bits (7582 occurrences)
Nov 15 05:18:58 ip-172-30-1-221 kernel: NFSv4 mounted on fileid > 32bits (23 occurrences)

A buildworld with an NFS mounted /usr/obj can otherwise result in
hundreds of thousands of lines being printed, which seems unnecessarily
verbose.

When ino_t becomes a 64-bit type, these printfs will no longer be needed
(and the problems associated with truncating 64-bit fileids to generate
32-bit inode numbers will also go away).

Reviewed by:	rmacklem
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D8523
2016-11-16 01:11:49 +00:00
..
nfs_commonacl.c Cleanup unnecessary semicolons from the kernel. 2016-04-10 23:07:00 +00:00
nfs_commonkrpc.c Update the nfsstats structure to include the changes needed by 2016-08-12 22:44:59 +00:00
nfs_commonport.c Update the nfsstats structure to include the changes needed by 2016-08-12 22:44:59 +00:00
nfs_commonsubs.c Reduce NFS "NFSv4( mounted on)? fileid > 32bits" log spam. 2016-11-16 01:11:49 +00:00
nfs_var.h Make nfscl_getmyip() use new routing KPI. 2016-01-15 09:05:14 +00:00
nfs.h Add kernel support to the NFS server for the "-manage-gids" 2015-11-30 21:54:27 +00:00
nfscl.h Move the NFSv4.1 client patches over from projects/nfsv4.1-client 2012-12-08 22:52:39 +00:00
nfsclstate.h Merge the NFSv4.1 server code in projects/nfsv4.1-server over 2014-07-01 20:47:16 +00:00
nfsdport.h Make the size of the hash tables used by the NFSv4 server tunable. 2015-05-27 22:00:05 +00:00
nfskpiport.h Fix typos in macros. 2010-05-08 14:50:12 +00:00
nfsm_subs.h Use M_SIZE() instead of hand-crafted (and mostly correct) NFSMSIZ() macro 2015-01-07 17:22:56 +00:00
nfsport.h Update the nfsstats structure to include the changes needed by 2016-08-12 22:44:59 +00:00
nfsproto.h Update the nfsstats structure to include the changes needed by 2016-08-12 22:44:59 +00:00
nfsrvcache.h Do not generate 1000 unique lock names for nfsrc hash chain locks. 2014-07-31 19:24:44 +00:00
nfsrvstate.h NFS: spelling fixes on comments. 2016-04-29 16:07:25 +00:00
nfsv4_errstr.h Add the experimental nfs subtree to the kernel, that includes 2009-05-04 15:23:58 +00:00
rpcv2.h Add the experimental nfs subtree to the kernel, that includes 2009-05-04 15:23:58 +00:00
xdr_subs.h Add the experimental nfs subtree to the kernel, that includes 2009-05-04 15:23:58 +00:00