diff --git a/scstadmin/scstadmin.sysfs/scstadmin b/scstadmin/scstadmin.sysfs/scstadmin index 79f7dee0f..4ca226015 100755 --- a/scstadmin/scstadmin.sysfs/scstadmin +++ b/scstadmin/scstadmin.sysfs/scstadmin @@ -3024,6 +3024,9 @@ sub addVirtualTarget { my $errorString; my $targets; + # Disable this code. Never used but gets expensive as the + # target count climbs. + if (0) { # Enable all hardware targets before creating virtual ones ($targets, $errorString) = $SCST->targets($driver); foreach my $_target (@{$targets}) { @@ -3035,6 +3038,7 @@ sub addVirtualTarget { enableTarget($driver, $_target); } } + } print "\t-> Creating target '$target' for driver '$driver': "; my $rc = $SCST->addVirtualTarget($driver, $target, $attributes);