filterColumn = 0; $sortCriteria->ascending = true; // Find all drive in the system that are set for encryption. $eDrives = get_all_drives($user, $sortCriteria); foreach ($eDrives as $drive) { if($drive->encryptionMethod == 4) { $EncryptUsedCnt++; } if($drive->encryptionSupported == 1) { $EncryptCnt++; $encryptedDrives .= $drive->guid . ":"; } } if (isset($_GET['libGUID'])) { $libGUID = $_GET['libGUID']; if(isset($_GET['mode']) and ($_GET['mode'] == 'edlm')) { // TODO for now just show all EDLM drives $drives = edlm_get_drives($user); } else { $assignedDrives = get_all_drives_by_library($user, $libGUID, $sortCriteria,(int)0,(int)MEDIA_TYPE_ANY); $driveCnt = sizeof($assignedDrives); $libname = $assignedDrives[0]->name; // TODO: do we need to get by media type? // For now passing in LTO_1 (1) as the media type will get all drives // that support LTO1 drives. $unassignedDrives = get_available_drives_by_type($user, $sortCriteria, (int)MEDIA_TYPE_ANY); $drives = array_merge($assignedDrives, $unassignedDrives); $encryption = get_partition_enryption( $user, $libGUID ); } } ?> Drive Report List encryptionMethod == 4) { $encryptionEnabled = 1; $vendor = $drive->vendor; // Save the paritions current vendor for the check later. } } $idx - 0; foreach ($drives as $drive) { error_log("DRIVE: ".print_r($drive, true)); // only check the assigned drives $checked = $drive->libGuid == $libGUID ? "checked" : ""; if ($checked) { $checkedDrives .= $drive->guid . ":"; } $disabled = ""; if ($drive->controlPath == 1) { $disabled = "disabled"; } if( $encryptionEnabled ) { if( !$drive->encryptionSupported || $drive->vendor != $vendor ) { $disabled = "disabled"; } } // If the current partition is FIPS we need to only allow HP LTO5 FC drives. if( isset($_GET['libGUID']) ) { if( $encryption->fips_mode ) if( $drive->driveType < "LTO-5" || $drive->vendor != "HP" || $drive->interfaceType != 'Fibre') $disabled = "disabled"; } ?>