1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib
Peter Rajnoha 9351dca863 report: fix selection on {vg,lv}_permissions fields to properly match selection criteria
There was a bug in value and their synonym definition for these two fields
causing selections on these fields to not work correctly - nothing matched
against vg/lv_permissions fields even if selection criteria should have
matched.

Scenario:
$ lvs -o name,lv_permissions vg
  LV    LPerms
  lvol0 read-only
  lvol1 writeable

Before this patch:

$ lvs -o name,lv_permissions vg -S 'permissions=read-only'
(blank)
$ lvs -o name,lv_permissions vg -S 'permissions=writeable
(blank)

With this patch applied:

$ lvs -o name,lv_permissions vg -S 'permissions=read-only'
  LV    LPerms
  lvol0 read-only
$ lvs -o name,lv_permissions vg -S 'permissions=writeable'
  LV    LPerms
  lvol1 writeable

Also synonyms match correctly now:
$ lvs -o name,lv_permissions vg -S 'permissions=rw'
  LV    LPerms
  lvol1 writeable
2014-10-23 15:03:04 +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 lvmcache: Skip VG_GLOBAL cache lock state update. 2014-10-07 01:15:43 +01: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 cache: include cache mode in vg metadata and display 2014-10-02 11:17:41 -05:00
datastruct cleanup: consolidate lv_layout and lv_role reporting 2014-08-25 16:14:40 +02:00
device device: Fix BLKSSZGET definition check. 2014-10-13 18:15:41 +01: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 filter-usable: filter out blocked and suspended devices firmly when scanning for lvmetad 2014-10-08 11:03:08 +02:00
format1 vgcreate: Permit non-power-of-2 extent sizes. 2014-10-14 18:12:15 +01:00
format_pool pvscan: use format feature flags in lvmetad code 2014-01-08 02:13:13 +00:00
format_text vgcreate: Permit non-power-of-2 extent sizes. 2014-10-14 18:12:15 +01: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 vgcreate: Permit non-power-of-2 extent sizes. 2014-10-14 18:12:15 +01: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 report: fix selection on {vg,lv}_permissions fields to properly match selection criteria 2014-10-23 15:03:04 +02: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