]> sourceware.org Git - lvm2.git/commit
Add pv_get_property and create generic internal _get_property function.
authorDave Wysochanski <dwysocha@redhat.com>
Thu, 30 Sep 2010 14:09:45 +0000 (14:09 +0000)
committerDave Wysochanski <dwysocha@redhat.com>
Thu, 30 Sep 2010 14:09:45 +0000 (14:09 +0000)
commit5b35bbdf1b1fcf2d98b59841128a97ba5b0c7d05
treeea997ff3952459a08602748c3f8c750ad954aee4
parent0c46d48e404eeaca1daa7599ad66912e5b1709ba
Add pv_get_property and create generic internal _get_property function.

We need to use a similar function for pv and lv properties, so just make
a generic _get_property() function that contains most of the required
functionality.  Also, add a check to ensure the field name matches the
object passed in by re-using report_type_t enum.  For pv properties,
the report_type might be either PVS or LABEL.

In addition, add 'const' to 'get' functions object parameter, but not
'set' functions.  Add _not_implemented_set() and _not_implemented_get()
functions.
lib/report/properties.c
lib/report/properties.h
This page took 0.032649 seconds and 5 git commands to generate.