From: <bva...@us...> - 2013-10-10 15:02:28
|
Revision: 5056 http://sourceforge.net/p/scst/svn/5056 Author: bvassche Date: 2013-10-10 15:02:25 +0000 (Thu, 10 Oct 2013) Log Message: ----------- scstadmin: Set hardware target attributes correctly For target drivers that support creating targets, e.g. the Emulex FC driver, it is possible that a target attribute is both writable for existing (hardware) targets and that it has to be specified when creating a (virtual) target. Make sure that scstadmin sets these attributes for existing (hardware) targets when restoring a configuration. Modified Paths: -------------- trunk/scstadmin/scstadmin.sysfs/scstadmin Modified: trunk/scstadmin/scstadmin.sysfs/scstadmin =================================================================== --- trunk/scstadmin/scstadmin.sysfs/scstadmin 2013-10-10 14:32:40 UTC (rev 5055) +++ trunk/scstadmin/scstadmin.sysfs/scstadmin 2013-10-10 15:02:25 UTC (rev 5056) @@ -2512,7 +2512,9 @@ } my $attributes = configToAttr(\%_attributes); - filterCreateAttributes($possible, $attributes, TRUE); + if ($SCST->targetType($driver, $target) == $SCST::SCST::TGT_TYPE_VIRTUAL) { + filterCreateAttributes($possible, $attributes, TRUE); + } $changes += setTargetAttributes($driver, $target, $attributes, $deletions); foreach my $item (keys %{$$targets{$target}}) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |