Yvan Wang
d50c09176f
fix(agent): honor explicit SMART_DEVICES type hint instead of scan-detected type ( #2102 )
...
When SMART_DEVICES specifies an explicit type (e.g. /dev/sda:scsi), the
agent resolved the device type correctly but smartctlArgs dropped the -d
flag for scsi/ata (the #1345 scan-misdetection workaround), so smartctl
re-detected the wrong type (sat) and collection failed on USB drives
whose bridge does not support SAT passthrough.
Mark types that come from an explicit SMART_DEVICES hint and always pass
them through via -d, while still letting scan-detected scsi/ata
auto-detect as before. Adds regression tests for the arg building, the
full parse -> merge -> args path, and flag preservation across rescans.
Fixes #2072
2026-08-14 14:13:33 -04:00
..
2026-08-14 10:17:38 -04:00
2025-10-18 15:40:54 -04:00
2026-02-19 18:04:33 -05:00
2026-03-31 15:55:02 -04:00
2026-04-02 15:36:05 -04:00
2025-11-05 13:03:47 -05:00
2026-04-08 20:13:39 -04:00
2026-02-26 18:38:54 -05:00
2026-02-19 18:04:33 -05:00
2025-10-02 17:56:51 -04:00
2026-02-19 18:04:33 -05:00
2026-03-28 17:43:29 -04:00
2026-08-13 19:27:33 -04:00
2026-08-13 19:25:12 -04:00
2026-04-17 19:26:11 -04:00
2026-04-17 19:26:11 -04:00
2026-02-25 19:04:29 -05:00
2026-03-20 15:00:28 -04:00
2026-03-07 14:12:17 -05:00
2026-03-30 13:48:54 -04:00
2026-04-04 18:28:05 -04:00
2026-08-13 18:14:30 -04:00
2026-08-11 16:40:24 -04:00
2026-02-12 15:27:42 -05:00
2026-02-12 15:27:42 -05:00
2026-02-12 15:27:42 -05:00
2026-03-07 13:50:49 -05:00
2026-02-12 15:27:42 -05:00
2026-02-19 18:04:33 -05:00
2026-02-06 14:32:57 -05:00
2026-03-07 13:50:49 -05:00
2026-04-07 18:41:22 -04:00
2026-01-29 18:35:57 -05:00
2026-02-18 14:51:30 -05:00
2026-02-18 15:15:58 -05:00
2026-03-27 13:52:22 -04:00
2026-03-07 14:12:17 -05:00
2026-01-12 15:38:13 -05:00
2026-02-13 19:41:40 -05:00
2026-01-11 20:27:34 -05:00
2026-01-12 15:38:13 -05:00
2026-03-07 13:50:49 -05:00
2026-03-28 18:58:16 -04:00
2026-03-28 18:58:16 -04:00
2026-02-19 18:04:33 -05:00
2026-01-05 15:26:59 -05:00
2026-08-11 15:50:58 -04:00
2026-08-11 15:50:58 -04:00
2026-02-27 13:42:47 -05:00
2026-03-10 18:46:57 -04:00
2026-03-10 18:46:57 -04:00
2026-01-05 13:13:55 -05:00
2025-09-07 16:42:15 -04:00
2026-04-02 15:10:49 -04:00
2025-09-07 16:42:15 -04:00
2026-04-02 15:10:49 -04:00
2026-08-11 17:14:59 -04:00
2026-08-11 17:14:59 -04:00
2025-11-05 13:03:47 -05:00
2026-08-14 14:13:33 -04:00
2025-11-05 13:03:47 -05:00
2026-08-14 14:13:33 -04:00
2026-08-13 17:06:10 -04:00
2026-08-13 17:06:10 -04:00
2026-01-12 15:38:13 -05:00
2025-11-14 17:28:40 -05:00
2026-03-20 15:00:28 -04:00
2026-03-17 15:11:44 -04:00
2026-02-06 14:32:57 -05:00