changeset 13510:1b2b756684eb

1659 Move warnings about nrnode calculation to system log Reviewed by: Dan McDonald <danmcd@nexenta.com> Reviewed by: Michael Tsymbalyuk <mtzaurus@gmail.com> Reviewed by: Dan Kruchinin <dkruchinin@acm.org> Reviewed by: Richard Lowe <richlowe@richlowe.net> Approved by: Gordon Ross <gwr@nexenta.com>
author Alexander Eremin <a.eremin@nexenta.com>
date Tue, 08 Nov 2011 13:15:34 +0300
parents 04570f5cbeca
children 0e6c45a1423b
files usr/src/uts/common/fs/nfs/nfs4_rnode.c usr/src/uts/common/fs/nfs/nfs_subr.c
diffstat 2 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/fs/nfs/nfs4_rnode.c	Sat Nov 05 17:34:13 2011 -0700
+++ b/usr/src/uts/common/fs/nfs/nfs4_rnode.c	Tue Nov 08 13:15:34 2011 +0300
@@ -28,6 +28,9 @@
  *	All Rights Reserved
  */
 
+/*
+ * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
+ */
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -1864,7 +1867,7 @@
 	    (ulong_t)((kmem_maxavail() >> 2) / sizeof (struct rnode4));
 	if (nrnode > nrnode4_max || (nrnode == 0 && ncsize == 0)) {
 		zcmn_err(GLOBAL_ZONEID, CE_NOTE,
-		    "setting nrnode to max value of %ld", nrnode4_max);
+		    "!setting nrnode to max value of %ld", nrnode4_max);
 		nrnode = nrnode4_max;
 	}
 	rtable4size = 1 << highbit(nrnode / rnode4_hashlen);
--- a/usr/src/uts/common/fs/nfs/nfs_subr.c	Sat Nov 05 17:34:13 2011 -0700
+++ b/usr/src/uts/common/fs/nfs/nfs_subr.c	Tue Nov 08 13:15:34 2011 +0300
@@ -23,6 +23,10 @@
  * Use is subject to license terms.
  */
 
+/*
+ * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
+ */
+
 #include <sys/param.h>
 #include <sys/types.h>
 #include <sys/systm.h>
@@ -3451,7 +3455,7 @@
 	nrnode_max = (ulong_t)((kmem_maxavail() >> 2) / sizeof (struct rnode));
 	if (nrnode > nrnode_max || (nrnode == 0 && ncsize == 0)) {
 		zcmn_err(GLOBAL_ZONEID, CE_NOTE,
-		    "setting nrnode to max value of %ld", nrnode_max);
+		    "!setting nrnode to max value of %ld", nrnode_max);
 		nrnode = nrnode_max;
 	}