1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-24 17:57:48 +03:00
Milan Broz 155c608cd3 Return error status if vgchange fails to activate some volume.
(on one node a storage connection failed):

# vgchange -a y vg_bar ; echo $?
  Error locking on node bar-02: Refusing activation of partial LV lv1. Use --partial to override.
    1 logical volume(s) in volume group "vg_bar" now active
    0

So activation fails on one node, error is correctly printed but
status code is wrong.

This patch fixes the top level (vgchange) to return proper code
(and print # of activated LVs).

(lvchange returns error properly here.)
2009-11-24 16:08:49 +00:00
..
2004-03-26 14:51:23 +00:00
2008-01-30 14:00:02 +00:00
2009-11-04 12:39:56 +00:00
2008-01-30 14:00:02 +00:00
2009-09-26 00:29:13 +00:00
2009-01-20 20:37:41 +00:00
2008-01-30 14:00:02 +00:00
2008-01-30 14:00:02 +00:00
2008-01-30 14:00:02 +00:00