1659 Move warnings about nrnode calculation to system log
Reviewed by: Dan McDonald <
[email protected]>
Reviewed by: Michael Tsymbalyuk <
[email protected]>
Reviewed by: Dan Kruchinin <
[email protected]>
Reviewed by: Richard Lowe <
[email protected]>
Approved by: Gordon Ross <
[email protected]>
--- 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;
}