1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-18 10:04:20 +03:00
lvm2/lib/metadata
Peter Rajnoha 54685c20fc filters: fix regression caused by commit e80884cd080cad7e10be4588e3493b9000649426
Commit e80884cd080cad7e10be4588e3493b9000649426 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
..
2014-07-22 22:41:40 +02:00
2014-06-20 11:41:20 +01:00
2014-07-03 23:49:34 +01:00
2013-12-12 13:28:19 +01:00
2013-01-07 22:30:29 +00:00
2013-12-12 13:28:19 +01:00
2013-06-17 09:34:56 +02:00
2014-03-01 14:08:58 +01:00
2014-03-01 14:08:58 +01:00