1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib
David Teigland c94d78f068 scan: wipe filters when dropping scanned data
Fix clearing persistent filter state when clearing all
the state from a label_scan.

label_scan reads devs and saves info in bcache, lvmcache,
and in the persistent filter.  In some uncommon cases, an
lvm command wants to clear all info from a prior label_scan,
and repeat label_scan from scratch.  In these cases, info
in lvmcache, bcache and the persistent filter all need to
be cleared before repeating label_scan.

By missing the persistent filter wiping, outdated persistent
filter info, from a prior label_scan, could cause lvm to
incorrectly filter devices that change between polling intervals.
(i.e. if the device changes in such a way that the filtering
results change.)

A case where lvm wants to do multiple label_scans is a
polling command (like lvconvert --merge), when lvmpolld
has been disabled, so that the command itself needs to
to do repeated polling checks.
2021-02-10 15:34:45 -06:00
..
activate lvcreate: use lv_passes_readonly_filter 2021-02-02 21:23:39 +01:00
cache fix for md component detection changes 2021-02-08 11:23:42 -06:00
cache_segtype cachevol: move flag setting after taking archive 2019-10-17 13:03:50 +02:00
commands filters: nodata option 2020-10-21 16:24:16 -05:00
config gcc: drop unused assingment 2021-02-10 15:39:03 +01:00
datastruct build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
device dev-cache: remove duplicated allocation 2021-02-10 15:38:18 +01:00
display lvdisplay: enhance LV status output for raid(0) 2021-01-27 16:56:22 +01:00
error device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
filters filter-mpath: work with nvme devices 2021-02-02 13:01:20 -06:00
format_text md component detection changes 2021-02-05 16:23:51 -06:00
freeseg device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
integrity targets: use target_present_version 2021-02-08 23:43:38 +01:00
label scan: wipe filters when dropping scanned data 2021-02-10 15:34:45 -06:00
locking lvmlockd vdo: add support 2020-09-29 14:43:27 -05:00
log logging: remove unused code 2019-02-28 10:30:54 -06:00
lvmpolld device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
metadata snapshot: create origin of virtual snap read only 2021-02-10 15:39:03 +01:00
mirror targets: use target_present_version 2021-02-08 23:43:38 +01:00
misc Allow dm-integrity to be used for raid images 2020-04-15 12:10:32 -05:00
mm memlock: allocate at most halve of rlimit stack 2020-10-20 22:26:44 +02:00
notify build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
properties build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
raid targets: use target_present_version 2021-02-08 23:43:38 +01:00
report integrity: display total mismatches at raid LV level 2020-11-11 15:10:15 -06:00
snapshot typo: fixes 2021-02-08 23:53:41 +01:00
striped device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
thin targets: use target_present_version 2021-02-08 23:43:38 +01:00
unknown device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
uuid build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
vdo targets: use target_present_version 2021-02-08 23:43:38 +01:00
writecache typo: fixes 2021-02-08 23:53:41 +01:00
zero device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
Makefile.in Allow dm-integrity to be used for raid images 2020-04-15 12:10:32 -05:00