fix: update smartctlArgs call to use hasExistingData flag (#1645)

This commit is contained in:
Tamás Vince
2026-01-16 21:30:52 +01:00
committed by GitHub
parent 8d9e9260e6
commit acaa9381fe

View File

@@ -435,7 +435,7 @@ func (sm *SmartManager) CollectSmart(deviceInfo *DeviceInfo) error {
defer cancel() defer cancel()
// Try with -n standby first if we have existing data // Try with -n standby first if we have existing data
args := sm.smartctlArgs(deviceInfo, true) args := sm.smartctlArgs(deviceInfo, hasExistingData)
cmd := exec.CommandContext(ctx, sm.binPath, args...) cmd := exec.CommandContext(ctx, sm.binPath, args...)
output, err := cmd.CombinedOutput() output, err := cmd.CombinedOutput()