mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 18:51:27 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user