1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-03 17:47:44 +03:00
David Teigland 5eafaad441 filter-sysfs: skip when device id is set
When a device id is set for a device, using an idtype other
than devname, it means that sysfs has been used with the device
to match the device id.  So, checking for a sysfs entry for the
device in filter-sysfs is redundant.  For any other cases not
covered by this (e.g. devname ids), have filter-sysfs simply
stat /sys/dev/block/major:minor to test if the device exists
in sysfs.

The extensive processing done by filter-sysfs init is removed.
It was taking an immense amount of time with many devices, e.g.
. 1024 PVs in 520 VGs
. 520 concurrent vgchange -ay <vgname> commands
. vgchange avoiding full device scanning by using pvs_online

A large number of the vgchange commands were taking over 1 min,
and nearly half of that time was used by filter-sysfs init.
With this patch, the vgchange commands take about half the time.
2021-11-02 15:54:16 -05:00
..
2021-10-14 14:02:59 -05:00
2021-10-14 23:34:11 +02:00
2018-06-08 13:40:53 +01:00
2021-10-15 23:36:22 +02:00
2018-06-08 13:40:53 +01:00
2021-11-01 16:01:45 -05:00
2021-10-18 19:17:27 +02:00
2021-09-27 18:56:14 +02:00
2021-09-15 15:24:56 +02:00
2021-03-19 23:21:18 +01:00
2021-02-08 23:53:41 +01:00
2018-06-08 13:40:53 +01:00
2021-02-08 23:43:38 +01:00
2018-06-08 13:40:53 +01:00
2021-02-17 11:21:35 +01:00
2021-02-08 23:53:41 +01:00
2018-06-08 13:40:53 +01:00
2021-07-13 11:11:23 -05:00