mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-23 21:51:27 +00:00
- Minor cleanup to new -issuelip functionality.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1135 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -23,7 +23,7 @@ General Operations
|
||||
Target Driver Operations
|
||||
-enable <wwn|host> : Enable target mode for driver at specified WWN or host.
|
||||
-disable <wwn|host> : Disable target mode for driver at specified WWN or host.
|
||||
-issuelip : Issue LIP on all target-enabled fabrics.
|
||||
-issuelip : Issue LIP on all target-enabled FC fabrics.
|
||||
|
||||
Device Operations
|
||||
-adddev <device> : Adds a device to a handler.
|
||||
@@ -1785,12 +1785,13 @@ sub enableTarget {
|
||||
sub issueLIP {
|
||||
foreach my $target (keys %{$TARGETS}) {
|
||||
next if ($$TARGETS{$target}->{'duplicate'});
|
||||
next if (!$$TARGETS{$target}->{'enabled'});
|
||||
|
||||
if (defined($$TARGETS{$target}->{'ilip'})) {
|
||||
my $io = new IO::File $$TARGETS{$target}->{'ilip'}, O_WRONLY;
|
||||
return $TRUE if (!$io);
|
||||
|
||||
print "\t-> Issuing LIP for target '$target': ";
|
||||
print "\t-> Issuing LIP for target '".formatTarget($target)."': ";
|
||||
|
||||
if ($_DEBUG_) {
|
||||
print "DBG($$): ".$$TARGETS{$target}->{'ilip'}." -> $TRUE\n\n";
|
||||
|
||||
Reference in New Issue
Block a user