Skip to contentSkip to conversation

conga/ricci/modules/storage GFS2.cpp

Cluster-devel [email protected] 1 participant 1 message Mar 1, 2007

lore
Share & tools
lore
#0 lore raw

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

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&r1=1.3&r2=1.4

ricci/modules/storage/GFS2.cpp +0 -12
@@ -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;