change the judgement If the partion plan is ok
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8855 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
5892e90145
commit
d220152db1
@ -383,7 +383,7 @@ sub fsp_api_create_parttion {
|
||||
$starting_octant_id = int($starting_lpar_id/4);
|
||||
|
||||
print "$octant_num_needed\n";
|
||||
if(7 - $starting_octant_id < $octant_num_needed ) {
|
||||
if(8 - $starting_octant_id < $octant_num_needed ) {
|
||||
$res = "starting LPAR id is $starting_lpar_id, starting octant id is $starting_octant_id, octant configuration values is $octant_conf_value. Wrong plan.\n";
|
||||
return ([$fsp_name, $res, -1]);
|
||||
}
|
||||
@ -394,8 +394,8 @@ sub fsp_api_create_parttion {
|
||||
my $new_pending_interleave_mode = 2;
|
||||
my $i = 0;
|
||||
for($i = 0; $i < $octant_num_needed; $i++ ) {
|
||||
$octant_id += $i;
|
||||
$parameters = $parameters.":$octant_id:$octant_conf_value:$new_pending_interleave_mode";
|
||||
$parameters = $parameters.":$octant_id:$octant_conf_value:$new_pending_interleave_mode";
|
||||
$octant_id ++;
|
||||
}
|
||||
|
||||
my $cmd;
|
||||
|
Loading…
Reference in New Issue
Block a user