]> 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)
commit4df3d5ad25d40d27139f54d3ee6a5bc40c617c66
treeea997ff3952459a08602748c3f8c750ad954aee4
parentf9bbf602135a3c8c2193d6edc3f9f069ed35353a
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.033401 seconds and 5 git commands to generate.