-Give up more quickly on write protected fru
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2846 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
595db756c4
commit
b2c68496f3
@ -2803,6 +2803,9 @@ sub writefru {
|
||||
sleep 1;
|
||||
}
|
||||
($rc,$text) = fruwrite(0,$newfru,8);
|
||||
if ($text =~ /rotected/) {
|
||||
last;
|
||||
}
|
||||
$writeattempts++;
|
||||
}
|
||||
if($rc) {
|
||||
@ -2854,6 +2857,9 @@ sub fruwrite {
|
||||
}
|
||||
|
||||
if($rc != 0) {
|
||||
if ($code == 0x80) {
|
||||
$text = "Write protected FRU";
|
||||
}
|
||||
if(!$text) {
|
||||
$text = sprintf("unknown response %02x",$code);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user