Opened 8 years ago

Last modified 8 years ago

#737 new defect

Exit code 0 returned even when the SMART Data cannot be read — at Version 1

Reported by: cferri Owned by:
Priority: minor Milestone: undecided
Component: smartctl Version: 6.5
Keywords: scsi Cc:

Description (last modified by Christian Franke)

An Exit Code of 0 is returned even when the SMART Data cannot be read. I realise all the bits of the Exit Code are in use, but is there any way that this result could be conveyed easily to the calling routine, perhaps a combination of bits that could not otherwise occur, or maybe all bits set?

Exit code 0

smartctl 6.5 2016-05-07 r4318 [x86_64-w64-mingw32-win10] (sf-6.5-1)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===

Change History (2)

comment:1 by Christian Franke, 8 years ago

Component: allsmartctl
Description: modified (diff)
Keywords: Exit Code removed
Milestone: Release 6.6undecided
Summary: Exit Code 0Exit code 0 returned even when the SMART Data cannot be read
Type: enhancementdefect

If SMART READ DATA has failed, smartctl should return exit code 4.

Please provide a sample debug output as an attachment to this ticket:
smartctl -r ioctl,2 -i -A ...

PS: For future bug reports, please do not set a milestone.

by cferri, 8 years ago

Attachment: smartctldb.txt added

Debug for device 3

Note: See TracTickets for help on using tickets.