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

CVS commit program cvs at parl.clemson.edu
Mon Feb 18 12:04:18 EST 2008


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

Modified Files:
      Tag: pvfs-2-7-branch
	pvfs2-genconfig 
Log Message:
merge of config file limit increase and genconfig warning message.


Index: pvfs2-genconfig
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/apps/admin/pvfs2-genconfig,v
diff -p -u -r1.76.2.1 -r1.76.2.2
--- pvfs2-genconfig	10 Dec 2007 17:18:28 -0000	1.76.2.1
+++ pvfs2-genconfig	18 Feb 2008 17:04:18 -0000	1.76.2.2
@@ -1505,7 +1505,6 @@ my $client_job_timeout = get_client_job_
 
 if (!$opt_quiet) {
     print $OUT "Writing fs config file... ";
-    print $OUT "done\n";
 }
 
 emit_defaults($output_target, $num_unexp_reqs,
@@ -1528,8 +1527,22 @@ if ($opt_metaspec) {
 if ($using_stdout == 0)
 {
     close($output_target);
+
+    my $req_limit = 65536;
+
+    if(-s $ARGV[0] > $req_limit)
+    {
+        my $size = (-s $ARGV[0]);
+        print STDERR
+"Warning: Generated config file: " . $ARGV[0] . "\n" .
+"has size: $size, which is larger than the current PVFS request: $req_limit\n" .
+"Increase the value of PVFS_REQ_LIMIT_CONFIG_FILE_BYTES in src/proto/pvfs2-req-proto.h\n";
+    }
 }
 
+if (!$opt_quiet) {
+    print $OUT "done\n";
+}
 
 # Local variables:
 #  c-indent-level: 4



More information about the Pvfs2-cvs mailing list