[PVFS2-CVS] commit by robl in pvfs2/src/apps/admin: pvfs2-genconfig
CVS commit program
cvs at parl.clemson.edu
Mon Mar 1 12:20:14 EST 2004
Update of /projects/cvsroot/pvfs2/src/apps/admin
In directory acid:/tmp/cvs-serv27950
Modified Files:
pvfs2-genconfig
Log Message:
add support for turning TroveSyncMode on and off
Index: pvfs2-genconfig
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/apps/admin/pvfs2-genconfig,v
diff -u -w -p -u -r1.35 -r1.36
--- pvfs2-genconfig 16 Feb 2004 22:00:00 -0000 1.35
+++ pvfs2-genconfig 1 Mar 2004 17:20:13 -0000 1.36
@@ -16,6 +16,7 @@ my @opt_ioservers = ();
my @opt_metaservers = ();
my $opt_logfile = '';
my $opt_storage = '';
+my $opt_trovesync = '1';
my $opt_quiet = '';
my $opt_logging = '';
@@ -218,7 +219,12 @@ sub emit_filesystem
print $target "\t<StorageHints>\n";
print $target "\t\tHandleRecycleTimeoutSecs $handle_recycle_timeout_seconds\n";
+ if ($opt_trovesync == 1) {
print $target "\t\tTroveSyncMode sync\n";
+ } else {
+ print $target "\t\tTroveSyncMode nosync\n";
+ }
+
print $target "\t\tAttrCacheKeywords datafile_handles,metafile_dist\n";
print $target "\t\tAttrCacheKeywords dir_ent, symlink_target\n";
print $target "\t\tAttrCacheSize 1031\n";
@@ -268,6 +274,7 @@ sub usage
print " --logfile <STRING> logfile location\n";
print " --logging <STRING> debugging mask for log messages.\n";
print " --storage <STRING> storage space location\n";
+ print " --notrovesync sync metadata only upon request\n";
print " --quiet run silently\n\n";
print "The two arguments specify the names of the configuration files\n";
@@ -456,6 +463,7 @@ GetOptions('protocol=s' => \$opt_prot
'storage=s' => \$opt_storage,
'help' => \$show_help,
'quiet!' => \$opt_quiet,
+ 'trovesync!' => \$opt_trovesync,
'-' => \$using_stdout);
if($show_help) {
More information about the PVFS2-CVS
mailing list