Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
36bc886
)
Minor interface cleanups.
author
gord-fig
<gord-fig>
Mon, 24 Sep 2001 17:39:22 +0000
(17:39 +0000)
committer
gord-fig
<gord-fig>
Mon, 24 Sep 2001 17:39:22 +0000
(17:39 +0000)
lustre/obdclass/obdcontrol
patch
|
blob
|
history
diff --git
a/lustre/obdclass/obdcontrol
b/lustre/obdclass/obdcontrol
index
8747b2e
..
7cb9048
100755
(executable)
--- a/
lustre/obdclass/obdcontrol
+++ b/
lustre/obdclass/obdcontrol
@@
-342,6
+342,8
@@
sub execute_line {
my @cmdline = split(' ', $line);
my $word = shift @cmdline;
my @cmdline = split(' ', $line);
my $word = shift @cmdline;
+ return 0 unless ($word);
+
my $cmd;
if ( $file ) {
$cmd = $word;
my $cmd;
if ( $file ) {
$cmd = $word;
@@
-353,10
+355,6
@@
sub execute_line {
return (-1);
}
return (-1);
}
- if ($cmd eq "help" || $cmd eq "exit" || $cmd eq "quit") {
- return (&{$commands{$cmd}->{func}}(@cmdline));
- }
-
# Call the function.
return (&{$commands{$cmd}->{func}}(@cmdline));
}
# Call the function.
return (&{$commands{$cmd}->{func}}(@cmdline));
}
@@
-389,7
+387,7
@@
sub Device {
print "Cannot open $device. Did you insert the obdclass module ?\n";
return -1;
}
print "Cannot open $device. Did you insert the obdclass module ?\n";
return -1;
}
- print "Opene
n
d device $device\n";
+ print "Opened device $device\n";
$opendevfds{$device} = *NEW_OBD;
$::dev_obd = *NEW_OBD;
}
$opendevfds{$device} = *NEW_OBD;
$::dev_obd = *NEW_OBD;
}