1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib
David Teigland d9ef9eb330 label_scan: fix independent metadata areas
This fixes the use of lvmcache_label_rescan_vg() in the previous
commit for the special case of independent metadata areas.

label scan is about discovering VG name to device associations
using information from disks, but devices in VGs with
independent metadata areas have no information on disk, so
the label scan does nothing for these VGs/devices.
With independent metadata areas, only the VG metadata found
in files is used.  This metadata is found and read in
vg_read in the processing phase.

lvmcache_label_rescan_vg() drops lvmcache info for the VG devices
before repeating the label scan on them.  In the case of
independent metadata areas, there is no metadata on devices, so the
label scan of the devices will find nothing, so will not recreate
the necessary vginfo/info data in lvmcache for the VG.  Fix this
by setting a flag in the lvmcache vginfo struct indicating that
the VG uses independent metadata areas, and label rescanning should
be skipped.

In the case of independent metadata areas, it is the metadata
processing in the vg_read phase that sets up the lvmcache
vginfo/info information, and label scan has no role.
2018-04-20 11:21:41 -05:00
..
activate activation: add generic rule for visibility change 2018-04-20 12:07:36 +02:00
cache scan: do scanning at the start of a command 2018-04-20 11:21:38 -05:00
cache_segtype cache: fix lvdisplay output 2017-06-22 20:17:18 +02:00
commands scan: use bcache for label scan and vg read 2018-04-20 11:19:24 -05:00
config scan: use bcache for label scan and vg read 2018-04-20 11:19:24 -05:00
datastruct datastruct: Add str_list_wipe. 2016-04-29 19:47:15 +01:00
device scan: use bcache for label scan and vg read 2018-04-20 11:19:24 -05:00
display coverity: validate retval from get_only_segment_using_this_lv 2017-06-27 00:27:36 +02:00
error activate: Use macros for target and module names. 2016-03-22 17:46:15 +00:00
filters [io paths] Unpick agk's aio stuff 2018-04-20 11:03:58 -05:00
format1 [io paths] Unpick agk's aio stuff 2018-04-20 11:03:58 -05:00
format_pool [io paths] Unpick agk's aio stuff 2018-04-20 11:03:58 -05:00
format_text label_scan: fix independent metadata areas 2018-04-20 11:21:41 -05:00
freeseg doc: change fsf address 2016-01-21 12:11:37 +01:00
label scan: use bcache for label scan and vg read 2018-04-20 11:19:24 -05:00
locking coverity: drop unused local static var 2018-03-17 23:33:58 +01:00
log cleanup: explicitely ignore result code 2018-02-28 21:15:55 +01:00
lvmpolld doc: change fsf address 2016-01-21 12:11:37 +01:00
metadata scan: do scanning at the start of a command 2018-04-20 11:21:38 -05:00
mirror mirror: block_on_error only with monitoring 2018-04-20 12:13:51 +02:00
misc coverity: drop unneeded header files 2018-03-17 23:33:58 +01:00
mm activation: separate prioritized counter 2018-03-15 12:30:45 +01:00
notify dbus: also recognize error state for missing service that comes from original D-Bus 2016-11-15 10:09:11 +01:00
properties doc: change fsf address 2016-01-21 12:11:37 +01:00
raid raid: fix version check of target 2018-03-17 23:30:14 +01:00
report tidy: Add missing underscores to statics. 2017-10-18 15:58:13 +01:00
snapshot gcc: remove warns about free of const 2018-02-13 19:56:02 +01:00
striped striped: implement compatible target name 2016-12-05 17:02:01 +01:00
thin gcc: remove warns about free of const 2018-02-13 19:56:02 +01:00
unknown gcc: remove warns about free of const 2018-02-13 19:56:02 +01:00
uuid cleanup :drop unneeded header file 2016-10-03 17:49:56 +02:00
zero activate: Use macros for target and module names. 2016-03-22 17:46:15 +00:00
Makefile.in [lib/device/bcache] Tweaks after Kabi's review 2018-04-20 11:10:45 -05:00