Opened 14 years ago

Closed 14 years ago

#75 closed defect (fixed)

smartctl: selective test of multiple spans rejected

Reported by: Dan Lukes Owned by: Dan Lukes
Priority: minor Milestone: Release 5.40
Component: smartctl Version: 5.39.1
Keywords: select multiple span single test type Cc:

Description

Smartctl misinterpret multiple use of -t select,M-N as request for multiple tests type and reject it with message:
ERROR: smartctl run only run a single test type ...

Change History (2)

comment:1 by Dan Lukes, 14 years ago

Status: newaccepted

comment:2 by Dan Lukes, 14 years ago

Resolution: fixed
Status: acceptedclosed

Analysis:
It's because testcnt variable used within smartctl.cpp is incremented for every -t select,....

Multiple -t select,... are not request for multiple test type but request for one test with multiple spans.

Fix:
The testcnt should not be increment on second,third,... occurrence of -t select,...

Note: See TracTickets for help on using tickets.