Bug 711033 - Smartd doesn't return right exitcode
Summary: Smartd doesn't return right exitcode
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: smartmontools
Version: 5.8
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Michal Hlavinka
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-06 09:58 UTC by Alex Sersen
Modified: 2013-11-01 01:34 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-09 10:12:02 UTC
Target Upstream Version:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.