1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

tests: add explicit call to lvs

Avoid using 'lvs' from  'get' shell - as that would wait until
whole group of processes is finished.

TODO: rethink what would be the point of starting 'dmeventd' with lvs.
It seems to break some rules.
This commit is contained in:
Zdenek Kabelac 2024-04-19 23:08:11 +02:00
parent 6ee731ba1a
commit 22571fb36a

View File

@ -85,6 +85,14 @@ not pgrep dmeventd
rm LOCAL_DMEVENTD
# First lvs restarts 'dmeventd' (initiate a socket connection to a daemon)
# used explicit 'lvs' avoid using forked 'check' function here as that
# would furher for 'get' and actualy would be waint till whole process group
# exits - which is not what we want here
#
# FIXME/TODO: lvs should probably not be the way to 'fork dmeventd'
#
lvs --noheadings -o seg_monitor $vg/3way
check lv_field $vg/3way seg_monitor "not monitored"
pgrep -o dmeventd >LOCAL_DMEVENTD
check lv_field $vg/4way seg_monitor "not monitored"