totalSlots - $lib->fullSlots; // if trying to decrease the number of slots in the partition, verify there are enough empty slots. $slot_count_change=0; if ($slotCount < $lib->totalSlots) { $slot_count_change=$lib->totalSlots - $slotCount; } if ( ($empty_slot_count < $slot_count_change) && ($slotCount < $lib->totalSlots) ) { $errorCode = 52009; $returnMessage = "Modify logical library failed. There are not enough empty slots to satisfy the request. Please remove media from the logical library. "; } else { modify_logical_library($user, $libGuid, $libName, (int)$emulationType,$barcodePolicy, (int)$autoClean, $drives, $slotCount); if(get_snmp_audit_logging_enabled($user) == '1') { error_log("send_snmp_audit_logging_partition_config_changed_trap"); send_snmp_audit_logging_partition_config_changed_trap($user, $libName, "A logical library configuration setting has been changed from the Web UI"); } $returnMessage = "Modify Logical Library Complete."; } } ?> Modify Logical Library