scstadmin: Do not try to clear copy manager assignments

This patch avoids that the following error message is displayed on the
console while "/etc/init.d/scst start" is executed:

scst: scst_cm_mgmt:3556:***ERROR***: Device copy_manager_tgt not found


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6689 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2015-11-13 19:07:10 +00:00
parent 06708a1d03
commit cfe0d34201

View File

@@ -2199,6 +2199,8 @@ sub applyConfigAssignments {
$assignments = $$config{'TARGET_DRIVER'};
foreach my $driver (sort keys %{$assignments}) {
next if $driver eq 'copy_manager';
if (!defined($CURRENT{'assign'}->{$driver})) {
condExit("Target driver '$driver' is not loaded or available.");
}
@@ -2697,6 +2699,8 @@ sub clearConfiguration {
}
foreach my $driver (sort keys %{$assignments}) {
next if $driver eq 'copy_manager';
foreach my $target (sort keys %{$$assignments{$driver}}) {
foreach my $group (sort keys %{$$assignments{$driver}->{$target}->{'GROUP'}}) {
clearInitiators($driver, $target, $group);