0 )
{
foreach(explode(":", $SCSI) as $drive)
{
$param = explode(",",$drive);
set_scsi_id($user,$param[0],(int)$param[1]);
}
}
if( (int)$numFibre > 0 )
{
error_log(" Fibre = ". $Fibre );
foreach(explode(":",$Fibre) as $drive)
{
$param = explode(",",$drive);
error_log("set_fc_id( user,". $param[0] .",". (int)$param[1] .",". (int)$param[2] .",". (int)$param[3]. ");");
set_fc_id($user,$param[0],(int)$param[1], (int)$param[2], (int)$param[3]);
}
}
print $status->out();
return;
}
$drives = get_all_drives($user, $sortCriteria);
error_log( "driveSetup:: drives:\n" . print_r($drives, true) );
$_SESSION['drives'] = $drives;
// See if we have ONLY SAS Drives - if so change the default No Drives message.
// error_log("* * * * * * Looking for SAS only Drives");
// $changeMsg = true;
// foreach( $drives as $drive )
// {
// if( $drive->interfaceType != "SAS" )
// {
// error_log("The Drive Interface was: ". $drive->interfaceType);
// $changeMsg = false;
// break;
// }
// }
?>
Setup Drive
Setup - Drive Settings
No drives available.
interfaceType == "Fibre" )
$numFibre++;
if( $drive->interfaceType == "SCSI" )
$numScsi++;
if( $drive->interfaceType == "SAS" )
$numSas++;
}
if( $numSas )
$SasText = " View the settings on SAS drives.";
else
$SasText = "";
// Change the text at the top of the screen to match which lists are being showed.
if( $numScsi > 0 && $numFibre > 0 ) // Both types
echo "";
else if ( $numScsi > 0 ) // SCSI only
echo "";
else if ( $numFibre > 0 ) // Fibre only
echo "";
else
echo "";
$fibreNote = "Note: The Actual Topology and Speed can take up to two minutes to be negotiated and returned from a fibre channel drive. The values will be unknown until negotiated.";
$sasNote = "Note: SAS drive IDs are not user configurable.";
$note = "";
// decide if we need to display a note about fibre or sas drives, or both
if ( $numFibre > 0 && $numSas == 0)
$note = $fibreNote;
else if ($numSas > 0 && $numFibre == 0)
$note = $sasNote;
else if ($numSas > 0 && $numFibre > 0)
$note = "$fibreNote $sasNote";
// If any notes, display them
if ( $note != "" )
echo "";
include('progressWin_inc.htm');
?>