Bug 711033

Summary: Smartd doesn't return right exitcode
Product: Red Hat Enterprise Linux 5 Reporter: Alex Sersen <asersen>
Component: smartmontoolsAssignee: Michal Hlavinka <mhlavink>
Status: CLOSED NOTABUG QA Contact: qe-baseos-daemons
Severity: low Docs Contact:
Priority: low    
Version: 5.8CC: ohudlick
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-09 10:12:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Alex Sersen 2011-06-06 09:58:01 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:
Run smartd on device that doesn't exists

Steps to Reproduce:
1. echo /dev/xyz -m user@home -M test | /usr/sbin/smartd -c - -q onecheck 
2. echo $?
3.
  
Actual results:
16

Expected results:
17

Additional info:
man smartd

Comment 1 RHEL Program Management 2011-09-23 00:11:00 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 2 Michal Hlavinka 2011-11-09 10:12:02 UTC
17 is used when DEVICESCAN does not find any device - it's for situation when smartd has been instructed to find devices

the reproducer lists not existing device, so error code 16 is correct here