[Ocfs2-tools-commits] manish commits r749 -
trunk/ocfs2console/ocfs2interface
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Sun Mar 27 19:09:36 CST 2005
Author: manish
Date: 2005-03-27 19:09:34 -0600 (Sun, 27 Mar 2005)
New Revision: 749
Modified:
trunk/ocfs2console/ocfs2interface/clconfig.py
Log:
Make sure we don't exceed the maximum number of nodes allowed
Modified: trunk/ocfs2console/ocfs2interface/clconfig.py
===================================================================
--- trunk/ocfs2console/ocfs2interface/clconfig.py 2005-03-27 23:25:49 UTC (rev 748)
+++ trunk/ocfs2console/ocfs2interface/clconfig.py 2005-03-28 01:09:34 UTC (rev 749)
@@ -22,6 +22,8 @@
import pango
from cStringIO import StringIO
+
+import ocfs2
from guiutil import Dialog, set_props, error_box
from process import Process
@@ -227,6 +229,11 @@
self.set_response_sensitive(gtk.RESPONSE_APPLY, state)
def add_node(self, b):
+ if len(self.store) > ocfs2.MAX_NODES:
+ error_box(self, 'Cannot have more than %d nodes in a cluster' %
+ ocfs2.MAX_NODES)
+ return
+
node_attrs = self.node_query(title='Add Node')
if node_attrs is None:
More information about the Ocfs2-tools-commits
mailing list