This service will be undergoing maintenance at 00:00 UTC, 2016-08-01. It is expected to last about 1 hours
Bug 514024 - vgs returns 0 (zero) even if the command error
vgs returns 0 (zero) even if the command error
Status: CLOSED NEXTRELEASE
Product: Fedora
Classification: Fedora
Component: lvm2 (Show other bugs)
11
All Linux
low Severity medium
: ---
: ---
Assigned To: LVM and device-mapper development team
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-27 13:05 EDT by masanari iida
Modified: 2009-07-27 13:50 EDT (History)
10 users (show)

See Also:
Fixed In Version: 2.02.50 upstream
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-07-27 13:50:53 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description masanari iida 2009-07-27 13:05:49 EDT
Description of problem:
vgs  returns 0 (zero) even if the command error

Version-Release number of selected component (if applicable):
vgs  returns 0 (zero) even though the command error.

How reproducible:
always

Steps to Reproduce:

# vgs /dev/cciss/c0d3p3
File descriptor 4 (/lib/libnspr4.so) leaked on vgs invocation. Parent PID 20216: bash
File descriptor 5 (/lib/libnspr4.so) leaked on vgs invocation. Parent PID 20216: bash
  Invalid volume group name: cciss/c0d3p3

# echo $?
0             <==


Expected results:
vgs should return non-zero exit status.


Additional info:
This bug is reported on lvm2 mailing list and fixed on CVS.

https://www.redhat.com/archives/lvm-devel/2009-July/msg00235.html

Log message:
Return EINVALID_CMD_LINE not success when invalid VG name format is used.
Comment 1 Alasdair Kergon 2009-07-27 13:50:53 EDT
lready fixed upstream - will flow through next time we build

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