From 23c495814523b588c71ca34b7b8e2923be2bd634 Mon Sep 17 00:00:00 2001 From: henrygd Date: Wed, 21 Jan 2026 19:09:57 -0500 Subject: [PATCH] increase `smartctl --scan` timeout to 10 seconds (#1465) --- agent/smart.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/smart.go b/agent/smart.go index 91bf7df2..94cd23ab 100644 --- a/agent/smart.go +++ b/agent/smart.go @@ -171,7 +171,7 @@ func (sm *SmartManager) ScanDevices(force bool) error { configuredDevices = parsedDevices } - ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) + ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second) defer cancel() cmd := exec.CommandContext(ctx, sm.binPath, "--scan", "-j")