1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 03:27:58 +03:00
lvm2/lib
Peter Rajnoha 54685c20fc filters: fix regression caused by commit e80884cd08
Commit e80884cd08 tried to dump filters
for them to be reevaluated when creating a PV to avoid overwriting
any existing signature that may have been created after last
scan/filtering.

However, we need to call refresh_filters instead of
persistent_filter->dump since dump requires proper rescannig to fill
up the persistent filter again. However, this is true only for pvcreate
but not for vgcreate with PV creation where the scanning happens before
this PV creation and hence the next rescan (if not full scan), does not
fill the persistent filter.

Also, move refresh_filters so that it's called sooner and only for
pvcreate, vgcreate already calls lvmcache_label_scan(cmd, 2) which
then calls refresh_filters itself, so no need to reevaluate this again.

This caused the persistent filter (/etc/lvm/cache/.cache file) to be
wrong and contain only the PV just being processed with
vgcreate <vg_name> <pv_name_to_create>.

This regression caused other block devices to be filtered out in case
the vgcreate with PV creation was used and then the persistent filter
is used by any other LVM command afterwards.
2014-08-01 11:39:53 +02:00
..
activate activation: Fix upgrades using uuid suffixes. 2014-07-30 21:55:11 +01:00
cache cleanup: just safely copy string 2014-07-04 12:31:17 +02:00
cache_segtype cache: use get_cache_mode for validation 2014-07-17 16:16:45 +02:00
commands conf: add report/list_item_separator lvm.conf option 2014-07-10 16:18:45 +02:00
config thin and cache: unify pool common code 2014-07-22 22:41:38 +02:00
datastruct report: select: refactor: move str_list to libdm 2014-06-17 16:27:20 +02:00
device dev-type: print aborting log_error 2014-07-04 12:31:17 +02:00
display prompt: display 'n' for EOF 2014-07-11 12:47:41 +02:00
error cleanup: modules_needed only for devmapper 2014-04-30 10:26:30 +02:00
filters report: select: refactor: move str_list to libdm 2014-06-17 16:27:20 +02:00
format1 metadata: fix ALLOCATABLE_PV for lvm1 format 2014-07-11 12:24:15 +02:00
format_pool pvscan: use format feature flags in lvmetad code 2014-01-08 02:13:13 +00:00
format_text metadata: Reinstate system info in metadata. 2014-07-21 15:54:20 +01:00
freeseg cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
label cleanup: remove unneeded header files 2014-02-11 19:00:06 +01:00
locking locking: fix cluster locking 2014-06-20 16:38:48 +01:00
log report: select: refactor: move str_list to libdm 2014-06-17 16:27:20 +02:00
metadata filters: fix regression caused by commit e80884cd08 2014-08-01 11:39:53 +02:00
mirror report: select: refactor: move percent handling code to libdm for reuse 2014-06-17 16:27:21 +02:00
misc activation: Fix upgrades using uuid suffixes. 2014-07-30 21:55:11 +01:00
mm memlock: skip more entries 2014-06-20 11:13:41 +02:00
properties report: add separate fields for PV/VG/LV attributes 2014-07-04 15:40:17 +02:00
raid raid: support lvdisplay --maps 2014-07-17 16:18:34 +02:00
replicator compilation: fix warnings: build_dm_uuid now accepts whole struct logical_volume, not lvid 2014-06-18 14:43:13 +02:00
report report: Remove lv_target_type field. 2014-07-22 20:57:57 +01:00
snapshot report: select: refactor: move percent handling code to libdm for reuse 2014-06-17 16:27:21 +02:00
striped metadata: use outfc for comments 2014-07-17 16:17:44 +02:00
thin report: select: refactor: move percent handling code to libdm for reuse 2014-06-17 16:27:21 +02:00
unknown unknown: add_target_line is not needed 2014-04-30 10:26:30 +02:00
uuid cleanup: drop unused define 2014-03-12 19:12:34 +01:00
zero cleanup: modules_needed only for devmapper 2014-04-30 10:26:30 +02:00
Makefile.in locking: Separate out flock and signal code. 2014-05-01 17:37:14 +01:00