[linux-lvm] vgs result code error

Ron Johnson ron.l.johnson at cox.net
Tue Jul 21 10:48:31 UTC 2009


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




More information about the linux-lvm mailing list