mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 10:35:51 +00:00
59e6f25a65
smartctl reports SAS drives with device protocol SCSI, so detectDiskType fell through to its blanket sata default, and that non-empty type also masked the text-output transport evidence the fallback parser had already extracted. The wrong sata label then blocked the merge layer from promoting the smartctl serial over the SAS transport address Proxmox reports. Classify SCSI-protocol devices via the scsi_transport_protocol descriptor, let the text and sysfs refinements upgrade a generic scsi label, and apply the legacy sata default only after all evidence is exhausted. Parse the SCSI log-page fields (power-on hours, grown defect count, endurance used) that SCSI drives report instead of an ATA attribute table, and let agent-reported sas replace coarse hdd/ssd/sata types during the disk merge. Refs #1595 Contract-Neutral: behavioral fix: SAS transport detection and SCSI attribute parsing in host agent SMART collection; no public contract delta (#1595)