[Ocfs2-tools-commits] manish commits r772 - trunk/ocfs2console/ocfs2interface

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Wed Mar 30 19:19:23 CST 2005


Author: manish
Date: 2005-03-30 19:19:21 -0600 (Wed, 30 Mar 2005)
New Revision: 772

Modified:
   trunk/ocfs2console/ocfs2interface/fswidgets.py
   trunk/ocfs2console/ocfs2interface/ocfs2module.c
Log:
Update for new constant names


Modified: trunk/ocfs2console/ocfs2interface/fswidgets.py
===================================================================
--- trunk/ocfs2console/ocfs2interface/fswidgets.py	2005-03-31 01:16:06 UTC (rev 771)
+++ trunk/ocfs2console/ocfs2interface/fswidgets.py	2005-03-31 01:19:21 UTC (rev 772)
@@ -122,8 +122,8 @@
 
 class ClusterSize(ValueCombo):
     def __init__(self):
-        ValueCombo.__init__(self, ocfs2.MIN_CLUSTER_SIZE,
-                                  ocfs2.MAX_CLUSTER_SIZE)
+        ValueCombo.__init__(self, ocfs2.MIN_CLUSTERSIZE,
+                                  ocfs2.MAX_CLUSTERSIZE)
         self.arg = '-C'
 
     label = 'Cluster Size'

Modified: trunk/ocfs2console/ocfs2interface/ocfs2module.c
===================================================================
--- trunk/ocfs2console/ocfs2interface/ocfs2module.c	2005-03-31 01:16:06 UTC (rev 771)
+++ trunk/ocfs2console/ocfs2interface/ocfs2module.c	2005-03-31 01:19:21 UTC (rev 772)
@@ -33,10 +33,6 @@
 #include "ocfsplist.h"
 
 
-#define MAX_CLUSTER_SIZE       1048576
-#define MIN_CLUSTER_SIZE       4096
-
-
 static PyObject *ocfs2_error;
 
 typedef struct
@@ -311,14 +307,14 @@
       PyModule_AddObject (m, "error", ocfs2_error);
     }
 
-  PyModule_AddIntConstant (m, "MAX_VOL_LABEL_LEN", MAX_VOL_LABEL_LEN);
+  PyModule_AddIntConstant (m, "MAX_VOL_LABEL_LEN", OCFS2_MAX_VOL_LABEL_LEN);
   PyModule_AddIntConstant (m, "MAX_NODES", OCFS2_MAX_NODES);
 
   PyModule_AddIntConstant (m, "MIN_BLOCKSIZE", OCFS2_MIN_BLOCKSIZE);
   PyModule_AddIntConstant (m, "MAX_BLOCKSIZE", OCFS2_MAX_BLOCKSIZE);
 
-  PyModule_AddIntConstant (m, "MIN_CLUSTER_SIZE", MIN_CLUSTER_SIZE);
-  PyModule_AddIntConstant (m, "MAX_CLUSTER_SIZE", MAX_CLUSTER_SIZE);
+  PyModule_AddIntConstant (m, "MIN_CLUSTERSIZE", OCFS2_MIN_CLUSTERSIZE);
+  PyModule_AddIntConstant (m, "MAX_CLUSTERSIZE", OCFS2_MAX_CLUSTERSIZE);
 
   if (PyErr_Occurred ())
     Py_FatalError ("can't initialize module ocfs2");



More information about the Ocfs2-tools-commits mailing list