VULN_CHECK_I913V6 GiddlZddlmZddlddlZddlmZddlm Z ddl Z ddl Z ejjZGddejZy)N)hotplug)*)commandsceZdZdZfdZfdZdZedZdZ dZ fdZ fd Z fd Z ed Zd Zd ZdZdZdZedddZedddZxZS)SCSIHostPlugina Tunes options for SCSI hosts. The plug-in sets Aggressive Link Power Management (ALPM) to the value specified by the [option]`alpm` option. The option takes one of four values: `min_power`, `med_power_with_dipm`, `medium_power` and `max_performance`. NOTE: ALPM is only available on SATA controllers that use the Advanced Host Controller Interface (AHCI). .ALPM setting when extended periods of idle time are expected ==== ---- [scsi_host] alpm=med_power_with_dipm ---- ==== cJtt| |i|t|_yN)superr__init__r_cmd)selfargskwargs __class__s C/usr/lib/python3.12/site-packages/tuned/plugins/plugin_scsi_host.pyr zSCSIHostPlugin.__init__ s &77j$)c"tt| d|_t |_|j jdD]9}|j|s|j j|j;t |_ y)NTscsi) r r _init_devices_devices_supportedset _free_devices_hardware_inventory get_devices_device_is_supportedaddsys_name_assigned_devices)rdevicers rrzSCSIHostPlugin._init_devices%so+- $u$((44VrCs r_instance_cleanupz SCSIHostPlugin._instance_cleanupPsrcVtjjdt|dS)N/sys/class/scsi_host/link_power_management_policyospathjoinstrrr s r_get_alpm_policy_filez$SCSIHostPlugin._get_alpm_policy_fileSs -s6{rrrs? )  jjnnm*W^^m*r