1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/device
David Teigland 66daedc6d2 skip indexing devices used by LVs in more commands
expands commit d5a06f9a7d
  "pvscan: skip indexing devices used by LVs"

The dev cache index is expensive and slow, so limit it
to commands that are used to observe the state of lvm.
The index is only used to print warnings about incorrect
device use by active LVs, e.g. if an LV is using a
multipath component device instead of the multipath
device.  Commands that continue to use the index and
print the warnings:

  fullreport, lvmdiskscan, vgs, lvs, pvs,
  vgdisplay, lvdisplay, pvdisplay,
  vgscan, lvscan, pvscan (excluding --cache)

A couple other commands were borrowing the DEV_USED_FOR_LV
flag to just check if a device was actively in use by LVs.
These are converted to the new dev_is_used_by_active_lv().
2021-07-09 13:59:31 -05:00
..
bcache-utils.c bcache: use indirection table for fd 2020-09-18 15:10:11 -05:00
bcache.c cov: void unused result 2021-03-15 11:13:24 +01:00
bcache.h bcache: use indirection table for fd 2020-09-18 15:10:11 -05:00
dev-cache.c skip indexing devices used by LVs in more commands 2021-07-09 13:59:31 -05:00
dev-cache.h skip indexing devices used by LVs in more commands 2021-07-09 13:59:31 -05:00
dev-dasd.c cov: mask uninitialized value 2021-03-10 01:34:27 +01:00
dev-ext-udev-constants.h dev-type: check for DEVLINKS udev db variable existence if udev_device_get_is_initialized fn is not present 2016-09-06 13:21:29 +02:00
dev-ext.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
dev-io.c cov: mask uninitialized value 2021-03-10 01:34:27 +01:00
dev-luks.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
dev-lvm1-pool.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
dev-md.c clang: remove unused assignment 2021-04-23 23:00:55 +02:00
dev-swap.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
dev-type.c skip indexing devices used by LVs in more commands 2021-07-09 13:59:31 -05:00
dev-type.h skip indexing devices used by LVs in more commands 2021-07-09 13:59:31 -05:00
device_id.c device_id: handle qemu wwid 2021-06-24 11:30:46 -05:00
device_id.h device usage based on devices file 2021-02-23 16:43:32 -06:00
device-types.h devices: Recognise Veritas Dynamic Multipathing 2017-01-10 22:23:23 +00:00
device.h remove unused flag DEV_UDEV_INFO_MISSING 2021-04-16 16:01:19 -05:00