1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-09 01:18:39 +03:00
lvm2/lib/metadata
David Teigland 9b640c3684 pvscan: use process_each_vg for autoactivate
This refactors the code for autoactivation.  Previously,
as each PV was found, it would be sent to lvmetad, and
the VG would be autoactivated using a non-standard VG
processing function (the "activation_handler") called via
a function pointer from within the lvmetad notification path.

Now, any scanning that the command needs to do (scanning
only the named device args, or scanning all devices when
there are no args), is done first, before any activation
is attempted.  During the scans, the VG names are saved.
After scanning is complete, process_each_vg is used to do
autoactivation of the saved VG names.  This makes pvscan
activation much more similar to activation done with
vgchange or lvchange.

The separate autoactivate phase also means that if lvmetad
is disabled (either before or during the scan), the command
can continue with the activation step by simply not using
lvmetad and reverting to disk scanning to do the
activation.
2016-05-23 11:57:32 -05:00
..
cache_manip.c lvchange: allow change of cache mode 2016-05-19 18:40:14 +02:00
lv_alloc.h doc: change fsf address 2016-01-21 12:11:37 +01:00
lv_manip.c raid0: Add raid0 segment type. 2016-05-23 16:46:38 +01:00
lv.c cache: check for cache fail during flush 2016-03-10 18:38:53 +01:00
lv.h coverity: avoid using signed types for single bits 2016-04-22 01:12:34 +02:00
merge.c lvchange: allow change of cache mode 2016-05-19 18:40:14 +02:00
metadata-exported.h lvchange: allow change of cache mode 2016-05-19 18:40:14 +02:00
metadata.c pvscan: use process_each_vg for autoactivate 2016-05-23 11:57:32 -05:00
metadata.h metadata: add support for interconnection of thin pool LV segment with indirect origin 2016-03-03 13:46:40 +01:00
mirror.c metadata: also look at historical LVs when checking LV name availability 2016-03-03 13:50:59 +01:00
pool_manip.c metadata: also look at historical LVs when checking LV name availability 2016-03-03 13:50:59 +01:00
pv_alloc.h doc: change fsf address 2016-01-21 12:11:37 +01:00
pv_manip.c pvscan: use process_each_vg for autoactivate 2016-05-23 11:57:32 -05:00
pv_map.c doc: change fsf address 2016-01-21 12:11:37 +01:00
pv_map.h doc: change fsf address 2016-01-21 12:11:37 +01:00
pv.c pvs: new attr and field for unchosen duplicate device 2016-05-06 09:00:00 -05:00
pv.h pv: add is_used_pv fn 2016-02-15 12:44:46 +01:00
raid_manip.c raid_manip: allow for raid leg to be replaced when not both data and metadata image are on pvs 2016-03-07 15:25:30 +01:00
replicator_manip.c doc: change fsf address 2016-01-21 12:11:37 +01:00
segtype.c doc: change fsf address 2016-01-21 12:11:37 +01:00
segtype.h raid0: Add raid0 segment type. 2016-05-23 16:46:38 +01:00
snapshot_manip.c display: Avoid internal snapshot LV names in msgs. 2016-04-21 00:30:17 +01:00
thin_manip.c gcc: cleanup some sign warnings 2016-02-23 12:25:25 +01:00
vg.c metadata: add historical_glv_remove 2016-03-03 13:50:57 +01:00
vg.h metadata: add historical_glv_remove 2016-03-03 13:50:57 +01:00