1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib
Peter Rajnoha 5011cac9cf filters: add cmd->full_filter - composite of cmd->filter and cmd->lvmetad_filter
There are actually three filter chains if lvmetad is used:
  - cmd->lvmetad_filter used when when scanning devices for lvmetad
  - cmd->filter used when processing lvmetad responses
  - cmd->full_fiilter (which is just cmd->lvmetad_filter + cmd->filter chained together) used
    for remaining situations

This patch adds the third one - "cmd->full_filter" - currently this is
used if device processing does not fall into any of the groups before,
for example, devices which does not have the PV label yet and we're just
creating a new one or we're processing the devices where the list of the
devices (PVs) is not returned by lvmetad initially.

Currently, the cmd->full_filter is used exactly in these functions:
  - lvmcache_label_scan
  - _pvcreate_check
  - pvcreate_vol
  - lvmdiskscan
  - pvscan
  - _process_each_label

If lvmetad is used, then simply cmd->full_filter == cmd->filter because
cmd->lvmetad_filter is NULL in this case.
2014-10-02 13:06:46 +02:00
..
activate refactor: make it possible to select what to check exactly when calling device_is_usable fn 2014-09-30 13:11:58 +02:00
cache filters: add cmd->full_filter - composite of cmd->filter and cmd->lvmetad_filter 2014-10-02 13:06:46 +02:00
cache_segtype cache: use get_cache_mode for validation 2014-07-17 16:16:45 +02:00
commands filters: add cmd->full_filter - composite of cmd->filter and cmd->lvmetad_filter 2014-10-02 13:06:46 +02:00
config conf: add allocation/physical_extent_size config option for default PE size of VGs. 2014-09-12 10:09:21 +02:00
datastruct cleanup: consolidate lv_layout and lv_role reporting 2014-08-25 16:14:40 +02:00
device cleanup: drop duplicate const usage 2014-09-24 10:54:48 +02:00
display cleanup: Use lv_is_ macros. 2014-09-15 21:33:53 +01:00
error cleanup: modules_needed only for devmapper 2014-04-30 10:26:30 +02:00
filters filters: use usable device filter and separate lvmetad filter chain so it's not reevaluated for any lvmetad response 2014-09-30 13:22:11 +02:00
format1 metadata: fix ALLOCATABLE_PV for lvm1 format 2014-07-11 12:24:15 +02:00
format_pool pvscan: use format feature flags in lvmetad code 2014-01-08 02:13:13 +00:00
format_text fix: regression for recent persistent commit 2014-09-19 17:08:41 +02:00
freeseg cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
label debug: drop printing debug trace without labeler 2014-09-24 10:54:48 +02:00
locking cleanup: constify activation usage of lv pointer 2014-09-24 10:54:47 +02:00
log report: select: refactor: move str_list to libdm 2014-06-17 16:27:20 +02:00
metadata filters: add cmd->full_filter - composite of cmd->filter and cmd->lvmetad_filter 2014-10-02 13:06:46 +02:00
mirror mirror: extend adjusted_mirror_region_size API 2014-09-24 10:48:02 +02:00
misc cleanup: avoid double assign 2014-08-19 14:33:06 +02:00
mm valgrind: don't eat mem with valgrind 2014-09-28 13:49:01 +02:00
properties report: add separate fields for PV/VG/LV attributes 2014-07-04 15:40:17 +02:00
raid cleanup: Use segtype.h definitions of segment type names wherever possible 2014-09-24 15:24:41 +02:00
replicator compilation: fix warnings: build_dm_uuid now accepts whole struct logical_volume, not lvid 2014-06-18 14:43:13 +02:00
report mirrors: Fix checks for mirror/raid/pvmove LVs. 2014-09-16 00:13:46 +01:00
snapshot cleanup: Use lv_is_ macros. 2014-09-15 21:33:53 +01:00
striped metadata: use outfc for comments 2014-07-17 16:17:44 +02:00
thin cleanup: drop duplicate const 2014-08-29 13:11:34 +02:00
unknown unknown: add_target_line is not needed 2014-04-30 10:26:30 +02:00
uuid cleanup: drop unused define 2014-03-12 19:12:34 +01:00
zero cleanup: modules_needed only for devmapper 2014-04-30 10:26:30 +02:00
Makefile.in filters: add "usable device" filter 2014-09-30 13:11:58 +02:00