1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/filters
Peter Rajnoha 00d8ab8492 refactor: make it possible to select what to check exactly when calling device_is_usable fn
Currently, there are 5 things that device_is_usable function checks
(for DM devices only, of course):
  - is device empty?
  - is device blocked? (mirror)
  - is device suspended?
  - is device composed of an error target?
  - is device name/uuid reserved?

If answer to any of these questions is "yes", then the device is not usable.
This patch just adds possibility to choose what to check for exactly - the
device_is_usable function now accepts struct dev_usable_check_params make
this selection possible. This is going to be used by subsequent patches.
2014-09-30 13:11:58 +02:00
..
filter-composite.c filters: check for mpath before opening devs 2013-08-13 23:26:58 +01:00
filter-md.c gcc: replace #ifdef linux with __linux__ 2013-11-13 13:56:29 +00:00
filter-mpath.c cleanup: use just PATH_MAX size 2014-08-19 14:33:06 +02:00
filter-partitioned.c filters: check for mpath before opening devs 2013-08-13 23:26:58 +01:00
filter-persistent.c refactor: make it possible to select what to check exactly when calling device_is_usable fn 2014-09-30 13:11:58 +02:00
filter-regex.c report: select: refactor: move str_list to libdm 2014-06-17 16:27:20 +02:00
filter-sysfs.c filters: drop extra slash from sysfs path 2013-11-22 20:53:31 +01:00
filter-type.c filters: check for mpath before opening devs 2013-08-13 23:26:58 +01:00
filter.h filters: check for mpath before opening devs 2013-08-13 23:26:58 +01:00