1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/misc
David Teigland 9048565093 devices: rework libudev usage
related to config settings:
  obtain_device_info_from_udev (controls if lvm gets
    a list of devices from readdir /dev or from libudev)
  external_device_info_source (controls if lvm asks
    libudev for device information)

. Make the obtain_device_list_from_udev setting
  affect only the choice of readdir /dev vs libudev.
  The setting no longer controls if udev is used for
  device type checks.

. Change obtain_device_list_from_udev default to 0.
  This helps avoid boot timeouts due to slow libudev
  queries, avoids reported failures from
  udev_enumerate_scan_devices, and avoids delays from
  "device not initialized in udev database" errors.
  Even without errors, for a system booting with 1024 PVs,
  lvm2-pvscan times improve from about 100 sec to 15 sec,
  and the pvscan command from about 64 sec to about 4 sec.

. For external_device_info_source="none", remove all
  libudev device info queries, and use only lvm
  native device info.

. For external_device_info_source="udev", first check
  lvm native device info, then check libudev info.

. Remove sleep/retry loop when attempting libudev
  queries for device info.  udev info will simply
  be skipped if it's not immediately available.

. Only set up a libdev connection if it will be used by
  obtain_device_list_from_udev/external_device_info_source.

. For native multipath component detection, use
  /etc/multipath/wwids.  If a device has a wwid
  matching an entry in the wwids file, then it's
  considered a multipath component.  This is
  necessary to natively detect multipath
  components when the mpath device is not set up.
2021-07-13 11:11:23 -05:00
..
crc_gen.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
crc.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
crc.h doc: change fsf address 2016-01-21 12:11:37 +01:00
intl.h doc: change fsf address 2016-01-21 12:11:37 +01:00
last-path-component.h doc: change fsf address 2016-01-21 12:11:37 +01:00
lib.h lib: remove unused macros 2021-04-06 22:02:31 +02:00
lvm-exec.c Merge branch 'master' into 2018-05-11-fork-libdm 2018-05-16 13:43:02 +01:00
lvm-exec.h build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
lvm-file.c lvm-file: remove duplication of dm_is_empty_dir 2021-03-10 01:09:14 +01:00
lvm-file.h lvm-file: remove duplication of dm_is_empty_dir 2021-03-10 01:09:14 +01:00
lvm-flock.c pvcreate,pvremove: fix reacquiring global lock after prompt 2019-11-26 14:34:43 -06:00
lvm-flock.h doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm-globals.c pvscan: disable sleeping and retrying for udev 2019-08-16 14:41:26 -05:00
lvm-globals.h pvscan: disable sleeping and retrying for udev 2019-08-16 14:41:26 -05:00
lvm-maths.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
lvm-maths.h lib: Move lcm and gcd to lib/misc for wider use. 2016-08-18 14:06:13 +01:00
lvm-percent.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
lvm-percent.h doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm-signal.c signals: support also SIGTERM for breaking command 2021-04-06 21:26:57 +02:00
lvm-signal.h signals: add interruptible usleep 2021-03-14 16:34:38 +01:00
lvm-string.c Allow dm-integrity to be used for raid images 2020-04-15 12:10:32 -05:00
lvm-string.h lvm-string: add drop_lvname_suffix 2019-10-21 12:14:15 +02:00
lvm-wrappers.c devices: rework libudev usage 2021-07-13 11:11:23 -05:00
lvm-wrappers.h fix: make udev_get_library_context available also for non-udev compilations 2016-04-01 15:35:22 +02:00
sharedlib.c lvm: drop usage of dl library 2018-12-17 10:36:52 +01:00
sharedlib.h lvm: drop usage of dl library 2018-12-17 10:36:52 +01:00
util.h utils: add clzll 2018-06-22 23:37:02 +02:00