mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
Fix lvm2-monitor init script to use normalized output when using vgs.
This commit is contained in:
parent
d098140177
commit
0644371f09
@ -1,5 +1,6 @@
|
||||
Version 1.02.68 -
|
||||
==================================
|
||||
Fix lvm2-monitor init script to use normalized output when using vgs.
|
||||
Add test for max length (DM_MAX_TYPE_NAME) of target type name.
|
||||
Include a copy of kernel DM documentation in doc/kernel.
|
||||
Improve man page style for dmsetup.
|
||||
|
@ -48,7 +48,7 @@ start()
|
||||
{
|
||||
ret=0
|
||||
# TODO do we want to separate out already active groups only?
|
||||
VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
|
||||
VGSLIST=`$VGS --noheadings -o name --config 'log{command_names=0 prefix=" "}' 2> /dev/null`
|
||||
for vg in $VGSLIST
|
||||
do
|
||||
action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
|
||||
@ -66,7 +66,7 @@ stop()
|
||||
echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
|
||||
return 1
|
||||
fi
|
||||
VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
|
||||
VGSLIST=`$VGS --noheadings -o name --config 'log{command_names=0 prefix=" "}' 2> /dev/null`
|
||||
for vg in $VGSLIST
|
||||
do
|
||||
action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
|
||||
|
@ -31,7 +31,7 @@ start()
|
||||
{
|
||||
ret=0
|
||||
# TODO do we want to separate out already active groups only?
|
||||
VGS=`vgs --noheadings -o name 2> /dev/null`
|
||||
VGS=`vgs --noheadings -o name --config 'log{command_names=0 prefix=" "}' 2> /dev/null`
|
||||
for vg in $VGS
|
||||
do
|
||||
action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y $vg || ret=$?
|
||||
@ -49,7 +49,7 @@ stop()
|
||||
echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
|
||||
return 1
|
||||
fi
|
||||
VGS=`vgs --noheadings -o name 2> /dev/null`
|
||||
VGS=`vgs --noheadings -o name --config 'log{command_names=0 prefix=" "}' 2> /dev/null`
|
||||
for vg in $VGS
|
||||
do
|
||||
action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
|
||||
|
Loading…
Reference in New Issue
Block a user