1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/daemons
David Teigland 56c68b3476 lvmetad: preemptively check and rescan in commands
Move checking the lvmetad state, and the possible rescan,
out of lvmetad_send() to the start of the command.

Previously, the token mismatch and rescan would occur
within lvmetad_send() for some other request.  Now,
the token mismatch is detected earlier, so the
rescan can be done before the main command is in
progress.  Rescanning deep within the processing of
another command will disturb the lvmcache state of
that other command.

A rescan already exists at the start of the command
for the case where foreign VGs are going to be read.
This same rescan is now also performed when there is
an lvmetad token mismatch (from a changed global_filter).

The commands pvscan/vgscan/lvscan/vgimport are excluded
from this preemptive checking/rescanning for lvmetad
because they want to do rescanning themselves explicitly.

If rescanning devices fails, then lvmetad has not been
correctly repopulated and should not be used, so make
the command revert to not using lvmetad.
2016-04-13 14:05:42 -05:00
..
clvmd gcc: cleanup Wunused-const-variable 2016-02-23 14:41:24 +01:00
cmirrord gcc: cleanup some sign warnings 2016-02-23 12:25:25 +01:00
dmeventd cleanup: gcc warn about comparing int with uint 2016-04-12 11:47:51 +02:00
lvmdbusd lvmdbusd: Add '-' to allowable PV device path chars 2016-03-24 12:27:02 -05:00
lvmetad lvmetad: preemptively check and rescan in commands 2016-04-13 14:05:42 -05:00
lvmlockd lvmlockd: use new sanlock flag to avoid blocking 2016-02-24 10:10:59 -06:00
lvmpolld doc: change fsf address 2016-01-21 12:11:37 +01:00
Makefile.in lvmdbus: Add new daemon. 2016-02-17 23:53:35 +00:00