mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-18 04:10:46 +00:00
throw an error message if the specified --cpupin cpuset include invalid node exclude declaration
This commit is contained in:
@ -2038,7 +2038,13 @@ sub chvm {
|
||||
my ($left,$right)=($1,$2);
|
||||
@pcpumaparr[$left .. $right]=(1) x ($right-$left+1);
|
||||
}elsif($rangeslice =~ /^\^(\d*)$/){
|
||||
$pcpumaparr[$1]=0;
|
||||
if($pcpumaparr[$1]==0){
|
||||
xCAT::SvrUtils::sendmsg([1,"\'$rangeslice\' is ignored, please make sure the specified cpu set is correct"],$callback,$node);
|
||||
return;
|
||||
}else{
|
||||
$pcpumaparr[$1]=0;
|
||||
}
|
||||
|
||||
}elsif($rangeslice =~ /^(\d*)$/){
|
||||
$pcpumaparr[$1]=1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user