Re: vgs result code error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2009-07-21 05:35, Alasdair G Kergon wrote:
On Tue, Jul 21, 2009 at 04:41:46AM -0500, Ron Johnson wrote:
Debian Sid's 2.02.44-3 returns a non-zero code, so either RH fixed it upstream, or Debian patched it...

# vgs /dev/sdc1
  WARNING: Ignoring duplicate config node: filter (seeking filter)
  Volume group "sdc1" not found
# echo $?
5

That's a *different* error case that works correctly.

Yes, I agree that the original case mentioned should give EINVALID_CMD_LINE
instead of ECMD_PROCESSED.


> On 2009-07-21 02:16, Masanari Iida wrote:
> # vgs /dev/cciss/c0d3p3
>   Invalid volume group name: cciss/c0d3p3

Hey, you're right!!

But why?  (I tried to mimic his example as best I could.)

Is it because of the multi-level device name, and the parser getting confused?

--
Scooty Puff, Sr
The Doom-Bringer

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux