mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-21 20:51:27 +00:00
scstadmin: Improve handling of write-only ALUA attributes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7933 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -768,10 +768,14 @@ sub aluaAttributes {
|
||||
my $io = new IO::File $pPath, O_RDONLY;
|
||||
|
||||
if (!$io) {
|
||||
return (undef, "deviceGroupsAttributes(): Unable to read device attribute '$attribute': $!");
|
||||
return (undef, "aluaAttributes(): Unable to read device attribute '$attribute': $!");
|
||||
}
|
||||
|
||||
my $value = <$io>;
|
||||
if (!defined($value)) {
|
||||
$value = "";
|
||||
}
|
||||
|
||||
chomp $value;
|
||||
|
||||
my $second_line = <$io>;
|
||||
|
||||
Reference in New Issue
Block a user