increase smartctl --scan timeout to 10 seconds (#1465)

This commit is contained in:
henrygd
2026-01-21 19:09:57 -05:00
parent edb2edc12c
commit 23c4958145

View File

@@ -171,7 +171,7 @@ func (sm *SmartManager) ScanDevices(force bool) error {
configuredDevices = parsedDevices configuredDevices = parsedDevices
} }
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
defer cancel() defer cancel()
cmd := exec.CommandContext(ctx, sm.binPath, "--scan", "-j") cmd := exec.CommandContext(ctx, sm.binPath, "--scan", "-j")