filterColumn = 0; $sortCriteria->ascending = true; $unassignedDrives = get_available_drives_by_type($user, $sortCriteria, (int)MEDIA_TYPE_ANY); $assignedDrives = array(); $libGUID = $_GET['libGUID']; $assignedDrives = get_all_drives_by_library($user, $libGUID, $sortCriteria,(int)0,(int)MEDIA_TYPE_ANY); $encryption = get_partition_enryption( $user, $libGUID ); $drives = array_merge($assignedDrives, $unassignedDrives); // Determine if the partition is library-managed $lib = get_logical_library($user, $libGUID); foreach($drives as $k => $drive) { // Delete regular drives if we want only edlm drives, or vice-versa. if($lib->libraryManaged != $drive->isEDLM) { unset($drives[$k]); } } ?> 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) { // 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 and ($drive->driveType < "LTO-5" || $drive->vendor != "HP" || $drive->interfaceType != 'Fibre')) { $disabled = "disabled"; } } ?>