[Cluster-devel] conga/ricci/modules/storage GFS2.cpp

kupcevic at sourceware.org kupcevic at sourceware.org
Thu Mar 1 00:14:04 UTC 2007


CVSROOT:	/cvs/cluster
Module name:	conga
Branch: 	RHEL5
Changes by:	kupcevic at sourceware.org	2007-03-01 00:14:03

Modified files:
	ricci/modules/storage: GFS2.cpp 

Log message:
	modstorage: remove block_size option from GFS2 creation

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/storage/GFS2.cpp.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.3&r2=1.3.2.1

--- conga/ricci/modules/storage/GFS2.cpp	2006/10/06 03:10:13	1.3
+++ conga/ricci/modules/storage/GFS2.cpp	2007/03/01 00:14:03	1.3.2.1
@@ -147,7 +147,6 @@
 create_GFS2(const String& path,
 	    const counting_auto_ptr<ContentTemplate>& templ)
 {
-  String bs = utils::to_string(templ->_props.get("block_size").get_int());
   String jnum = utils::to_string(templ->_props.get("journals_num").get_int());
   long long jsize_bytes = templ->_props.get("journal_size").get_int();
   String jsize = utils::to_string(jsize_bytes / 1024 / 1024);
@@ -165,9 +164,6 @@
   
   
   vector<String> args;
-  args.push_back("-b");
-  args.push_back(bs);
-  
   args.push_back("-J");
   args.push_back(jsize);
   
@@ -208,14 +204,6 @@
   // mountpoints
   mount_props_template(gfs2_module, _props);
   
-  // block_size
-  list<long long> b_sizes;
-  b_sizes.push_back(512);
-  b_sizes.push_back(1024);
-  b_sizes.push_back(2048);
-  b_sizes.push_back(4096);
-  _props.set(Variable("block_size", 4096, b_sizes));
-  
   // journals
   _props.set(Variable("journals_num", 1, 1, 128, 1));
   list<long long> jsizes;




More information about the Cluster-devel mailing list