From efff1b524d8399c1b7519cfca5775c4c8000b333 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 4 Jan 2018 04:16:04 +0000 Subject: [PATCH] scstadmin: Skip the copy manager when computing exported LUNs git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7322 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scstadmin/scstadmin.sysfs/scst-1.0.0/lib/SCST/SCST.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scstadmin/scstadmin.sysfs/scst-1.0.0/lib/SCST/SCST.pm b/scstadmin/scstadmin.sysfs/scst-1.0.0/lib/SCST/SCST.pm index dbfe3726d..175c55c53 100644 --- a/scstadmin/scstadmin.sysfs/scst-1.0.0/lib/SCST/SCST.pm +++ b/scstadmin/scstadmin.sysfs/scst-1.0.0/lib/SCST/SCST.pm @@ -2621,9 +2621,12 @@ sub deviceAttributes { my $group = $3; my $lun = $4; + next if ($target eq 'copy_manager'); $attributes{$attribute}->{'value'}->{$driver}->{$target}->{$group} = $lun; } + } + if ($attributes{$attribute}->{'value'}) { $attributes{$attribute}->{'static'} = TRUE; } close $eHandle;