Bug 514024 - vgs returns 0 (zero) even if the command error
Summary: vgs returns 0 (zero) even if the command error
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: lvm2
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: LVM and device-mapper development team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-27 17:05 UTC by masanari iida
Modified: 2009-07-27 17:50 UTC (History)
10 users (show)

Fixed In Version: 2.02.50 upstream
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-07-27 17:50:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description masanari iida 2009-07-27 17:05:49 UTC
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 17:50:53 UTC
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.