1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-01 09:47:48 +03:00
David Teigland 62533ae3fa vgchange -aay: optimize device list using pvs_online files
Port another optimization from pvscan -aay to vgchange -aay:
  "pvscan: only add device args to dev cache"

This optimization avoids doing a full dev_cache_scan, and
instead populates dev-cache with only the devices in the
VG being activated.

This involves shifting the use of pvs_online files from
the hints interface up to the higher level label_scan
interface.  This specialized label_scan is structured
around creating a list of devices from the pvs_online
files.  Previously, a list of all devices was created
first, and then reduced based on the pvs_online files.
The initial step of listing all devices was slow when
thousands of devices are present on the system.

This optimization extends the previous optimization that
used pvs_online files to limit the devices that were
actually scanned (i.e. reading to identify the device):
  "vgchange -aay: optimize device scan using pvs_online files"
2021-11-05 12:19:35 -05:00
..
2016-01-21 12:11:37 +01:00
2021-09-20 14:26:09 +02:00
2016-01-21 12:11:37 +01:00
2017-03-28 16:11:35 +01:00
2021-09-27 18:56:14 +02:00
2021-09-27 18:56:14 +02:00
2016-01-21 12:11:37 +01:00
2020-10-20 22:22:52 +02:00
2020-10-20 22:22:52 +02:00
2020-10-20 22:22:52 +02:00
2020-10-20 22:22:52 +02:00
2016-01-21 12:11:37 +01:00
2021-09-27 18:56:14 +02:00
2018-12-04 14:06:46 -06:00
2016-01-21 12:11:37 +01:00
2018-07-11 11:26:42 -05:00
2021-09-06 14:00:20 +02:00
2021-08-16 11:31:15 -05:00
2021-02-23 16:43:32 -06:00
2016-01-21 12:11:37 +01:00
2021-06-09 14:56:13 +02:00
2019-06-25 15:39:08 -05:00
2021-10-06 15:43:31 +02:00
2016-01-21 12:11:37 +01:00
2018-06-13 14:14:03 -05:00
2016-01-21 12:11:37 +01:00
2021-11-04 11:09:29 -05:00
2021-11-04 11:09:29 -05:00
2021-04-19 14:40:14 +02:00
2021-07-21 13:19:51 +02:00
2021-08-16 11:31:15 -05:00