All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/12] dm_report attribute handling and liblvm vg attributes
@ 2009-02-12 19:30 Dave Wysochanski
  2009-02-12 19:30 ` [PATCH 01/12] Add dm_report_output_attributes() API to dm_report framework Dave Wysochanski
  2009-02-13 13:19 ` [RFC PATCH 0/12] dm_report attribute handling and liblvm vg attributes Dave Wysochanski
  0 siblings, 2 replies; 18+ messages in thread
From: Dave Wysochanski @ 2009-02-12 19:30 UTC (permalink / raw)
  To: lvm-devel


The purpose of this patchset is to get feedback on one approach to handling
attributes in liblvm.  The most important patches are:
1/12: Adds dm_report_output_attribute() function and related structures.
9/12: Updates vg_open to store vg attributes in the handle.  This allows us
to use the report memory safely (we free it in vg_close().
10/12: Add lvm_vg_get_attr_list() and lvm_vg_get_attr().

What is missing in the patch is the mode (read/write) of the attribute.
I have not thought extensively about this but one option is as follows.
Add a 'mode' or 'is_writable' field to the dm structure, and set it to
'readonly' for all attributes output by dm_report_output_attribute().
Then in vg_open(), depending on the mode and capabilities of the current
release of liblvm code, we can gradually change various attributes to
writeable.

This patchset should build fine but with some warnings.  Attribute code
was exercised with test code in last patch.



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2009-02-22 23:39 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-12 19:30 [RFC PATCH 0/12] dm_report attribute handling and liblvm vg attributes Dave Wysochanski
2009-02-12 19:30 ` [PATCH 01/12] Add dm_report_output_attributes() API to dm_report framework Dave Wysochanski
2009-02-12 19:30   ` [PATCH 02/12] Add system_dir to create_toolcontext() Dave Wysochanski
2009-02-12 19:30     ` [PATCH 03/12] Add lvm_create, lvm_destroy, lvm_reload_config() APIs Dave Wysochanski
2009-02-12 19:30       ` [PATCH 04/12] Move vg_t, lv_t, and pv_t from metadata-exported.h into lvm2.h Dave Wysochanski
2009-02-12 19:30         ` [PATCH 05/12] Add lvm_pv_name, lvm_vg_name, and lvm_lv_name accessors Dave Wysochanski
2009-02-12 19:30           ` [PATCH 06/12] Add lvm_vg_open() Dave Wysochanski
2009-02-12 19:30             ` [PATCH 07/12] Add lvm_vg_close() Dave Wysochanski
2009-02-12 19:30               ` [PATCH 08/12] Add lvm_errno(), lvm_strerror, lvm_vg_mode Dave Wysochanski
2009-02-12 19:30                 ` [PATCH 09/12] Update lvm_vg_open() to read and store the list of vg attributes Dave Wysochanski
2009-02-12 19:30                   ` [PATCH 10/12] Add lvm_vg_get_attr_list() and lvm_vg_get_attr() Dave Wysochanski
2009-02-12 19:30                     ` [PATCH 11/12] Add lvm_vgname_from_vgid() and lvm_get_vgids() Dave Wysochanski
2009-02-12 19:30                       ` [PATCH 12/12] Add test code Dave Wysochanski
2009-02-22 23:11                 ` [PATCH 08/12] Add lvm_errno(), lvm_strerror, lvm_vg_mode Alasdair G Kergon
2009-02-22 23:39                   ` Alasdair G Kergon
2009-02-22 23:00           ` [PATCH 05/12] Add lvm_pv_name, lvm_vg_name, and lvm_lv_name accessors Alasdair G Kergon
2009-02-22 22:46         ` [PATCH 04/12] Move vg_t, lv_t, and pv_t from metadata-exported.h into lvm2.h Alasdair G Kergon
2009-02-13 13:19 ` [RFC PATCH 0/12] dm_report attribute handling and liblvm vg attributes Dave Wysochanski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.