[Ocfs2-commits] mfasheh commits r2343 - trunk/fs/ocfs2/cluster

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Tue May 31 20:44:20 CDT 2005


Author: mfasheh
Signed-off-by: manish
Date: 2005-05-31 20:44:19 -0500 (Tue, 31 May 2005)
New Revision: 2343

Modified:
   trunk/fs/ocfs2/cluster/nodemanager.c
Log:
* cut down the hb_ctl_path parameter a bit.

Signed-off-by: manish



Modified: trunk/fs/ocfs2/cluster/nodemanager.c
===================================================================
--- trunk/fs/ocfs2/cluster/nodemanager.c	2005-05-31 23:49:26 UTC (rev 2342)
+++ trunk/fs/ocfs2/cluster/nodemanager.c	2005-06-01 01:44:19 UTC (rev 2343)
@@ -36,14 +36,15 @@
  * cluster references throughout where nodes are looked up */
 static struct nm_cluster *nm_single_cluster = NULL;
 
-static char ocfs2_hb_ctl_path[PATH_MAX] = "/sbin/ocfs2_hb_ctl";
+#define OCFS2_MAX_HB_CTL_PATH 256
+static char ocfs2_hb_ctl_path[OCFS2_MAX_HB_CTL_PATH] = "/sbin/ocfs2_hb_ctl";
 
 static ctl_table ocfs2_nm_table[] = {
 	{
 		.ctl_name	= 1,
 		.procname	= "hb_ctl_path",
 		.data		= ocfs2_hb_ctl_path,
-		.maxlen		= PATH_MAX,
+		.maxlen		= OCFS2_MAX_HB_CTL_PATH,
 		.mode		= 0644,
 		.proc_handler	= &proc_dostring,
 		.strategy	= &sysctl_string,



More information about the Ocfs2-commits mailing list