[Pvfs2-cvs] commit by robl in pvfs2-1/src/apps/admin: pvfs2-genconfig

CVS commit program cvs at parl.clemson.edu
Fri Sep 14 18:24:17 EDT 2007


Update of /projects/cvsroot/pvfs2-1/src/apps/admin
In directory parlweb1:/tmp/cvs-serv28326/src/apps/admin

Modified Files:
	pvfs2-genconfig 
Log Message:
this should help get the nightly tests going again


Index: pvfs2-genconfig
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/src/apps/admin/pvfs2-genconfig,v
diff -u -w -p -u -r1.74 -r1.75
--- pvfs2-genconfig	29 Aug 2007 16:57:41 -0000	1.74
+++ pvfs2-genconfig	14 Sep 2007 22:24:17 -0000	1.75
@@ -323,6 +323,22 @@ sub emit_filesystem
     print $target "</Filesystem>\n";
 }
 
+sub emit_serveropts
+{
+    my $target = shift;
+
+    foreach my $alias (sort keys %all_endpoints)
+    {
+        my $endpoint = $all_endpoints{$alias};
+        print $target "\n<ServerOptions>\n";
+        print $target "\tServer $alias\n";
+        print $target "\tStorageSpace $endpoint->{STORAGE}\n";
+        print $target "\tLogFile $endpoint->{LOGFILE}\n";
+        print $target "</ServerOptions>\n";
+    }
+}
+
+
 sub emit_server_conf
 {
     my($target, $node, $storage, $logfile) = @_;
@@ -1410,11 +1426,16 @@ emit_aliases($output_target);
 emit_filesystem($output_target, "pvfs2-fs", $fsid, $root_handle, 
     $last_handle, $first_handle, $meta_count + $io_count, $default_num_dfiles, $default_flow_buffer_size, $default_flow_buffer_count);
 
+if ($opt_metaspec) {
+    emit_serveropts($output_target);
+}
+
 # close fs.conf
 if ($using_stdout == 0)
 {
     close($output_target);
 }
+
 
 # Local variables:
 #  c-indent-level: 4



More information about the Pvfs2-cvs mailing list