]> sourceware.org Git - lvm2.git/commit
report: fix selection on {vg,lv}_permissions fields to properly match selection criteria
authorPeter Rajnoha <prajnoha@redhat.com>
Thu, 23 Oct 2014 13:03:04 +0000 (15:03 +0200)
committerPeter Rajnoha <prajnoha@redhat.com>
Thu, 23 Oct 2014 13:03:04 +0000 (15:03 +0200)
commit9351dca86393f862a6b2c270d5869407a4614d8a
treea69478708acf73cf7610ea5b964faf42fce1fd52
parent4b611bb816eef3e363e005b48b881e933c3de9e2
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
WHATS_NEW
lib/report/report.c
lib/report/values.h
This page took 0.033762 seconds and 5 git commands to generate.