Whamcloud - gitweb
Test the value of the failo{ver,ut} flags before deciding to add a format
authorbrian <brian>
Tue, 14 Nov 2006 16:28:23 +0000 (16:28 +0000)
committerbrian <brian>
Tue, 14 Nov 2006 16:28:23 +0000 (16:28 +0000)
param.

lustre/scripts/lmc2csv.pl

index 779ea8e..95d4873 100644 (file)
@@ -219,10 +219,10 @@ foreach my $ost (@{$objs{"ost"}}) {
         $mount_opts .= "," . $ost->{"mountfsoptions"};
     }
     my $mkfs_options="";
-    if (defined($ost->{"failover"})) {
+    if (defined($ost->{"failover"}) & $ost->{"failover"}) {
         $mkfs_options .= "failover.mode=failover" . " ";
     }
-    if (defined($ost->{"failout"})) {
+    if (defined($ost->{"failout"}) & $ost->{"failout"}) {
         $mkfs_options .= "failover.mode=failout" . " ";
     }
     chop($mkfs_options);