1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 03:27:58 +03:00
lvm2/tools
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
..
.exported_symbols
.gitignore gitignore: Update for in-place build. 2015-07-27 13:18:35 +01:00
args.h vgscan: add --notifydbus to send a notification 2016-03-07 10:50:45 -06:00
cmdnames.h doc: change fsf address 2016-01-21 12:11:37 +01:00
commands.h lvmetad: preemptively check and rescan in commands 2016-04-13 14:05:42 -05:00
dmsetup.c coverity: check cmd pointer exists 2016-02-23 21:40:16 +01:00
dumpconfig.c doc: change fsf address 2016-01-21 12:11:37 +01:00
errors.h doc: change fsf address 2016-01-21 12:11:37 +01:00
formats.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvchange.c gcc: cleanup some sign warnings 2016-02-23 12:25:25 +01:00
lvconvert_poll.c lvconvert: show percent with %.2 2016-04-06 11:31:02 +02:00
lvconvert_poll.h doc: change fsf address 2016-01-21 12:11:37 +01:00
lvconvert.c lvconvert: fix error path test 2016-03-14 23:37:42 +01:00
lvcreate.c lvcreate: %FREE -> %PVS 2016-04-07 22:32:08 +02:00
lvdisplay.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvextend.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm2cmd-static.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm2cmd.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm2cmd.h doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm2cmdline.h doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm-static.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvmchange.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvmcmdlib.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvmcmdline.c lvmetad: preemptively check and rescan in commands 2016-04-13 14:05:42 -05:00
lvmdiskscan.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvpoll.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvreduce.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvremove.c commands: lvremove: also process historical LVs 2016-03-03 13:50:59 +01:00
lvrename.c lvrename: support renaming historical logical volumes 2016-03-04 11:36:24 +01:00
lvresize.c lvresize: fix regression with zero size arg 2016-02-25 23:29:57 +01:00
lvscan.c lvmetad: preemptively check and rescan in commands 2016-04-13 14:05:42 -05:00
Makefile.in doc: change fsf address 2016-01-21 12:11:37 +01:00
polldaemon.c lvconvert: show percent with %.2 2016-04-06 11:31:02 +02:00
pvchange.c pvchange, pvresize: move exported VG check 2016-03-10 13:37:42 -06:00
pvck.c doc: change fsf address 2016-01-21 12:11:37 +01:00
pvcreate.c pvcreate: fix setting uuid arg 2016-02-25 12:00:53 -06:00
pvdisplay.c toollib: add two phase pv processing code 2016-02-25 09:14:09 -06:00
pvmove_poll.c doc: change fsf address 2016-01-21 12:11:37 +01:00
pvmove_poll.h doc: change fsf address 2016-01-21 12:11:37 +01:00
pvmove.c cleanup: poll better check for internal errors 2016-02-25 23:30:25 +01:00
pvremove.c replace pvcreate_params with pvcreate_each_params 2016-02-25 09:14:10 -06:00
pvresize.c pvchange, pvresize: move exported VG check 2016-03-10 13:37:42 -06:00
pvscan.c lvmetad: preemptively check and rescan in commands 2016-04-13 14:05:42 -05:00
reporter.c report: remove superfluous SEGSSTATUS report type 2016-04-08 14:21:47 +02:00
segtypes.c doc: change fsf address 2016-01-21 12:11:37 +01:00
stub.h doc: change fsf address 2016-01-21 12:11:37 +01:00
tags.c doc: change fsf address 2016-01-21 12:11:37 +01:00
tool.h doc: change fsf address 2016-01-21 12:11:37 +01:00
toollib.c toollib: always process in use pvs 2016-03-07 14:15:33 -06:00
toollib.h cmd: add '-H|--history' switch and wire it up in cmd_context and processing_handle 2016-03-03 13:49:14 +01:00
tools.h lvmetad: preemptively check and rescan in commands 2016-04-13 14:05:42 -05:00
vgcfgbackup.c doc: change fsf address 2016-01-21 12:11:37 +01:00
vgcfgrestore.c doc: change fsf address 2016-01-21 12:11:37 +01:00
vgchange.c doc: change fsf address 2016-01-21 12:11:37 +01:00
vgck.c doc: change fsf address 2016-01-21 12:11:37 +01:00
vgconvert.c redefine pvcreate structs 2016-02-25 09:14:10 -06:00
vgcreate.c replace pvcreate_params with pvcreate_each_params 2016-02-25 09:14:10 -06:00
vgdisplay.c doc: change fsf address 2016-01-21 12:11:37 +01:00
vgexport.c doc: change fsf address 2016-01-21 12:11:37 +01:00
vgextend.c replace pvcreate_params with pvcreate_each_params 2016-02-25 09:14:10 -06:00
vgimport.c lvmetad: preemptively check and rescan in commands 2016-04-13 14:05:42 -05:00
vgmerge.c doc: change fsf address 2016-01-21 12:11:37 +01:00
vgmknodes.c doc: change fsf address 2016-01-21 12:11:37 +01:00
vgreduce.c cleanup: use lv_is_partial 2016-03-03 10:17:03 +01:00
vgremove.c doc: change fsf address 2016-01-21 12:11:37 +01:00
vgrename.c coverity: drop unused assignments 2016-02-23 21:40:16 +01:00
vgscan.c lvmetad: preemptively check and rescan in commands 2016-04-13 14:05:42 -05:00
vgsplit.c vgcreate: use the common toollib pv create 2016-02-25 09:14:09 -06:00